Giter Club home page Giter Club logo

docuconverse's Introduction

DocuConverse

Conversational AI Chatbot - Interact with Documents like never before

The Art of Building Intelligent Applications with Langchain and Streamlit

This is a Streamlit app that allows users to chat with a PDF document using a conversational AI model. The app uses Cohere for language modeling and question answering, and Chroma for document indexing and Langchain for chaining all these together.

Want to See Langchain Colab Notebook

Use This Colab Notebook: Click here by @log-xp and @Nikhil-Paleti

Demo

For PDF Chatbot

https://chatwithpdf.streamlit.app/

https://huggingface.co/spaces/eswardivi/ChatwithPdf/

For Widgets (Streamlit Demo)

https://widgets.streamlit.app/

Usage

To use the app, follow these steps:

  1. Upload a PDF document using the sidebar.
  2. Type your message in the "You:" field and press "Send".
  3. The AI model will generate a response based on the contents of the PDF document.
  4. The response will be displayed in the chat window.

You can adjust the temperature of the AI model and the chunk size for splitting the document using the sliders in the sidebar.

Run Locally

Clone the project

  git clone https://github.com/EswarDivi/Anokha_Demo

Go to the project directory

  cd Anokha_Demo

To use this app, you will need to create an account with Cohere and get an API key. Once you have an API key, create a file secrets.toml in the root directory of this project and add the following line:

cohere_apikey="<your_api_key>"

Install dependencies

    pip install -r requirements.txt

Deployment

To deploy this project run

  streamlit run Talkwithpdf.py

Deploying on Streamlit Cloud

To deploy this project on Streamlit Sharing, follow the steps below:

  1. Create an account on Streamlit Sharing and connect it to your GitHub account.

  2. Fork this repository to your GitHub account.

  3. In the app secrets of your Streamlit Sharing dashboard, add a new secret named cohere_apikey and set it to your Cohere API key.

  4. Click on Deploy and wait for the deployment to finish.

  5. Once the deployment is finished, you can access your app on the provided URL.

Note: Make sure your Cohere API key is kept secret and is not exposed to the public.

Credits

This app was created using the following libraries:

docuconverse's People

Contributors

eswardivi avatar log-xp avatar

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.