Skip to content
Projects

About

When RAG and agents fall in love

AI & Machine Learning

How these counts are measured

What you can do

  • PDF Upload and Processing: Upload PDF documents to initialize the vector store.
  • AI-Powered Query Handling: Use AI models to process and respond to user queries.
  • Web Search Integration: Augment responses with web search results for enhanced accuracy.
  • Dry Run Mode: Test the application without making actual API calls or database operations.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
-2
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

The King RAGent

The King RAGent is an AI-powered research assistant that leverages vector databases and external APIs to provide comprehensive answers to user queries. This application is built using Streamlit for the frontend and integrates various backend services for document processing and information retrieval.

Features

  • PDF Upload and Processing: Upload PDF documents to initialize the vector store.
  • AI-Powered Query Handling: Use AI models to process and respond to user queries.
  • Web Search Integration: Augment responses with web search results for enhanced accuracy.
  • Dry Run Mode: Test the application without making actual API calls or database operations.

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/ragents.git
    cd ragents
    
  2. Install the required packages:

    pip install -r requirements.txt
    
  3. Set up environment variables:

    • Create a .env file in the root directory.
    • Add your API keys and other necessary configurations.

Usage

  1. Run the Streamlit app:

    streamlit run streamlit_app.py
    
  2. Open your browser and navigate to the local URL provided by Streamlit.

Dry Run Mode

The application now supports a dry_run mode, which allows you to test the app without making actual API calls or database operations. This is useful for development and testing purposes.

How to Enable Dry Run Mode

  • Streamlit Interface: Use the "🔧 Dry Run Mode" checkbox in the sidebar to toggle dry run mode on or off.
  • Backend Logic: The dry_run parameter is propagated through the application, affecting the following components:
    • VectorStore: Skips database loading and returns mock data.
    • call_claude_rag: Returns a mock response instead of calling the Claude API.
    • assess_confidence: Returns a mock confidence level.
    • synthesize_information: Returns a mock synthesis of information.
    • call_tavily_web_search: Returns mock search results.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Explore related projects

Loading…