Iqra Technology

Implementing Memory in LangChain

❮ Previous Next ❯ Implementing Memory in LangChain LangChain provides easy tools to add memory into your applications, whether for short-term conversation context or long-term user history. Simple conversation memory LangChain includes built-in memory types such as ConversationBufferMemory, which allows your LLM to remember previous messages during a session. Example: This setup enables the model […]

Implementing Memory in LangChain Read More »

Hands-on: Experimenting with Prompts

❮ Previous Next ❯ Hands-on: Experimenting with Prompts LangChain allows you to test different prompt strategies with ease. You can dynamically insert variables into templates and observe how changing wording impacts results. Code Sample: Writing and testing different prompt styles Try experimenting with:    •  Open-ended vs. specific prompts   •  Formal vs. conversational tone   • 

Hands-on: Experimenting with Prompts Read More »

Types of Prompts

❮ Previous Next ❯ Types of Prompts Different tasks require different types of prompts. Common categories include: • Descriptive prompts – For explanations or summaries• Instructional prompts – For how-to guidance or procedures• Creative prompts – For storytelling or ideation• Comparative prompts – For pros/cons or analysis Each type helps tailor the output style and

Types of Prompts Read More »

Creating Simple LLM Applications

❮ Previous Next ❯ Creating Simple LLM Applications LangChain makes it easy to build beginner-friendly LLM-powered applications. Let’s look at two basic use cases: Generating text responses You can build apps that generate: •  Blog posts or social media content•  Email replies•  Product descriptions•  Creative writing content Example: Chatbots with basic prompts LangChain allows you

Creating Simple LLM Applications Read More »