Skip to content

Nischal-exe/ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

# ⚑ Synapse: Advanced Multi-Query AI Assistant

Synapse is a high-performance **Retrieval-Augmented Generation (RAG)** application built to extract precise, well-organized information from PDF documents. By utilizing **Multi-Query Expansion**, Synapse overcomes the limitations of standard keyword search, ensuring it finds the most relevant information even if the user's question is vague.



## 🌟 Key Features

* **Multi-Query Expansion:** Uses Groq's Llama 3.3 to rewrite user queries into multiple variations, increasing retrieval accuracy (Recall).
* **Persistent Cloud Memory:** Integrated with **Neon DB (PGVector)** to store document embeddings permanently in the cloud.
* **Explainable AI:** Provides direct **Source Citations** including page numbers and exact text snippets for every answer.
* **Context-Aware Chat:** Maintains a session-based history to handle follow-up questions (e.g., "What about the second one?").
* **Sub-Second Latency:** Powered by **Groq LPU** inference for near-instant responses.

## πŸ› οΈ Tech Stack

* **Frontend:** [Streamlit](https://streamlit.io/)
* **Orchestration:** [LangChain](https://www.langchain.com/)
* **Brain (LLM):** Groq (Llama 3.3-70B)
* **Vector Database:** Neon DB (PostgreSQL + PGVector)
* **Embeddings:** Hugging Face (`all-MiniLM-L6-v2`)

## πŸ“‚ Project Structure

```text
Synapse-Cloud/
β”œβ”€β”€ .streamlit/             # Streamlit configuration
β”‚   └── secrets.toml        # Local secrets (ignored by Git)
β”œβ”€β”€ app.py                  # Main application logic
β”œβ”€β”€ requirements.txt        # Python dependencies
β”œβ”€β”€ packages.txt            # Linux system dependencies (libpq-dev)
└── .gitignore              # Files to exclude from GitHub

About

Learning RAG, so made this.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •  

Languages