Maham Codes
mahamcodes.bsky.social
Maham Codes
@mahamcodes.bsky.social
AI Content Developer > ex Hashnode > ex Rapid (RapidAPI)

🔹 To add an AI assistant prompt, click on the `AI Assistant` button in front of `Add Message By` to write an AI assistant prompt.

It will open a text area with the role `AI Assistant`. Write an AI assistant prompt in this text area.
November 27, 2024 at 2:53 PM
🔹 For adding user prompts, click on the `User` button in front of `Add Message By` to write a user prompt.

It will open a text area with the role `User`. Write a user prompt in this text area.
November 27, 2024 at 2:53 PM
❯❯ How to use these prompts?

All of these prompts are present inside an AI agent pipe and can also be customized. These prompts can use variables that make them dynamic.

🔹 To add a system prompt, navigate to any of your Langbase pipes and click on the `System Prompt Instructions` text area.
November 27, 2024 at 2:53 PM
❯❯ Prompt the LLM model

That's it! You have successfully created a RAG system using a memory agent that can chat with your document.

Now, you can prompt the LLM model to get answers to your questions. It will search the memory and provide you with the best possible answer to your question.
November 26, 2024 at 3:06 PM
❯❯ Add memory to an AI agent

1. Create or open an AI agent pipe.
2. In the editor, click `Memory`.
3. Select the memory from the `Search Memory Sets` dropdown.
November 26, 2024 at 3:06 PM
❯❯ Add document to memory

1. Save the document to be attached in the memory as a PDF or TXT.
2. Open the memory created and upload the file.
3. Click "Refresh" to check the upload status.
4. Once the status is `Ready`, the document is processed and ready to use.
November 26, 2024 at 3:06 PM
❯❯ Get started

1. Signup on Langbase
2. Click on the `Memory` tab on the left sidebar to open the memory page.
3. Click on the `Add New` button. Enter a name for the new memory.
4. Click on the `Create` button to create the memory.
November 26, 2024 at 3:06 PM