Giter VIP home page Giter VIP logo

qdrant-langchain-cohere-ragbot-python-server's Introduction

A Simple Full Stack RAG-bot for Enterprises using React, Qdrant, Langchain, Cohere and FastAPI

This backend API server is a core component of an AI-powered document chat application, designed to interpret and respond to user queries based on the content of uploaded documents. Leveraging the capabilities of LangChain, Cohere, and Qdrant, it offers a robust and scalable solution for semantic document processing.

Features

  • Multitenancy Support: Efficiently handles multiple users by segregating their data using unique group IDs.
  • Binary Quantization: Utilizes Qdrant's binary quantization for optimal storage and fast retrieval of embeddings.
  • Natural Language Processing: Empowered by Cohere's LLM, it provides accurate and context-aware responses.
  • Scalable Vector Search: Integrates with Qdrant for scalable and efficient vector search capabilities.

How to Use

  1. Set Up Your Environment:
    • Ensure Python is installed.
    • Clone the repository and navigate to the project directory.
  2. Configuration:
    • Set environment variables for Cohere API key, Qdrant URL, and Qdrant API key in a .env file.
  3. Installation:
     pip install -r requirements.txt
    
  4. Start the Server:
    python main.py
    

This will launch the FastAPI server, which will be accessible locally.

Tools and Technologies

  • LLM Orchestration: Langchain
  • Vector DB and Similarity Search: Qdrant
  • API Framework: FastAPI
  • LLM Integration: Cohere API

Frontend UI Code

https://github.com/AI-ANK/qdrant-langchain-cohere-ragbot-ui

License

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

Support

For support, please open an issue in the GitHub issue tracker.

Live Demo

Try the demo here

Author

Developed by Harshad Suryawanshi If you find this project useful, consider giving it a โญ on GitHub!

qdrant-langchain-cohere-ragbot-python-server's People

Contributors

ai-ank avatar

Stargazers

 avatar Beckett avatar  avatar Shashipal avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

shashipal95

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.