Skip to content

A cognitive agent with conversational memory, tool use, structured prompts, and retrieval-augmented generation, built using LangChain.

Notifications You must be signed in to change notification settings

ejaj/lang-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cognitive Agent Project

Overview

This project builds a cognitive AI agent capable of:

  • Conversational interaction with memory,
  • Using external tools (e.g., Wikipedia search, Time retrieval),
  • Reasoning over knowledge and chaining multiple steps,
  • Retrieving external knowledge using RAG techniques.

The design is modular and extensible for various intelligent agent applications.


Features

  • Conversational AI with context memory
  • Tool integration and execution
  • Structured prompt templates for controlled behavior
  • Chain-of-Thought and multi-step reasoning
  • Retrieval-Augmented Generation (RAG) modules
  • Model-agnostic (OpenAI, custom LLMs, etc.)
  • Modular and extensible folder structure

Getting Started

  1. Clone the repository:

    git clone <repository_url>
    cd <repository_name>
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate    # Linux/macOS
    venv\Scripts\activate     # Windows
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Set environment variables:
    Create a .env file and add your API keys:

    OPENAI_API_KEY=your-openai-api-key
    
  5. Run the application:

    python main.py

Tech Stack

  • Python 3.9+
  • LangChain
  • OpenAI API
  • Wikipedia API
  • Custom Tools
  • Retrieval-Augmented Generation (RAG)
  • Large Language models (LLM)

References


About

A cognitive agent with conversational memory, tool use, structured prompts, and retrieval-augmented generation, built using LangChain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published