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

Read more about it here: langbase.com/docs/feature...

And follow @mahamcodes.bsky.social for more AI conten 🙌
Prompts - Features
A prompt sets the context and guidelines for both the LLM and the user, shaping the conversation and responses.
langbase.com
November 27, 2024 at 2:53 PM
🔹 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
❯❯ User and AI assistant prompts

A user prompt is a text input that a user provides to an LLM to which the LLM model responds.

An AI assistant prompt is the LLM's generated output in response to a user prompt. It is the response that the LLM generates based on the user's input.
November 27, 2024 at 2:53 PM
❯❯ System prompt

A system prompt sets the context, instructions, and guidelines for a language model like GPT-o1, Llama-3.2, etc., before it receives questions or tasks.

It helps define the model's role, personality, tone, and other details to improve its responses to user input.
November 27, 2024 at 2:53 PM
❯❯ What is a prompt?

A natural language text that requests the generative AI to perform a specific task.

AI agent pipes on Langbase can contain system, user, and AI assistant prompts. This helps in creating desired serverless multi-agentic workflows.
November 27, 2024 at 2:53 PM
❯❯ What is prompt engineering?

Prompt engineering is the process where you guide generative AI solutions to generate desired outputs.

It combines language skills, clear instructions, and trial-and-error to ensure AI produces high-quality outputs that align with user needs.
November 27, 2024 at 2:53 PM
Follow @mahamcodes.bsky.social for more AI content 🙌
November 26, 2024 at 3:06 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
❯❯ What is RAG?

LLMs are limited to pre-trained data—they can’t access real-time or private info.

RAG (Retrieval-Augmented Generation) solves this by pulling specific, relevant data from external sources or databases, enabling your AI to respond with accuracy, not assumptions.
November 26, 2024 at 3:06 PM
8️⃣ AutoGPT launched Agent Blocks:

- Create simple AI agents
- Combine them to solve complex tasks
- Build on top of existing agents
November 25, 2024 at 2:22 PM
7️⃣ Mistral updated le Chat, their free AI assistant. It now offers:

- Web search with citations
- Tools for brainstorming, editing, and exporting
- Document and image understanding (using Pixtral Large)
- Image generation with Flux Pro
November 25, 2024 at 2:22 PM
6️⃣ OpenAI updated the GPT-4o model, improving its creative writing for more natural and engaging results.
November 25, 2024 at 2:22 PM
5️⃣ Anthropic dropped a cool new feature that allows you directly to add content from Google Docs to chats and projects.
November 25, 2024 at 2:22 PM
4️⃣ Langbase introduced metadata support in their Memory agents.

Helping to build real-time RAG with context and metadata.
November 25, 2024 at 2:22 PM
3️⃣ Black Forest Labs released FLUX.1 Tools.

...a suite of models to add control to the base text-to-image model FLUX.1.
November 25, 2024 at 2:22 PM
2️⃣ Google Gemini Advanced now includes Memory.

That means users can save info by simply asking Gemini to remember it.
November 25, 2024 at 2:22 PM