8000 GitHub - Senthi1Kumar/chat-with-docs: A simple RAG assistant to chat with Ellie.ai's Documentation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Senthi1Kumar/chat-with-docs

Repository files navigation

Chat with Ellie.ai Documentation 🔍🤖

A simple RAG-powered assistant for querying Ellie.ai's technical documentation using natural language.

Project Architecture diagram

Features

  • Natural language queries over documentation
  • Source citation with document references
  • Conversation history tracking
  • Hallucination safeguards

Prerequisites

  • Python 3.10+
  • Groq/Google Gemini API Key (set as GROQ_API_KEY or GOOGLE_API_KEY in environment)
  • Milvus DB

Installation

git clone https://github.com/Senthi1Kumar/chat-with-docs.git
cd chat-with-docs
python -m venv .venv
# source .venv/bin/activate or .venv\Scripts\activate
pip install -r requirements.txt

Configuration

  1. Copy example config and update environment variable (.env) with your Groq API:
cp config/.env.example config/.env
  1. Update with your:
    • Documentation URLs
    • Milvus connection details - path to store the DB
    • Device preferences (CPU/GPU)

Usage

  1. Ingest documentation:
python index_docs.py
  1. Start chat interface:
streamlit run app.py
  1. To Execute evaluation, please set the Gemini API key in .env file:
python evaluate.py

Evaluation Framework

The evaluation framework provided in evaluate.py is designed to access the performance of our RAG system which leverages Google Generative AI (via ChatGoogleGenerativeAI class). It prepares an evaluation dataset, runs the RAG system on a set of pre-defined test questions, and computes multiple evaluation metrics such as Faithfulness, Answer Correctness, Context Recall, LLM Context Recall, and Factual Correctness using the RAGAS library.

License

MIT License

About

A simple RAG assistant to chat with Ellie.ai's Documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0