SkillAgentSearch skills...

ChatDocuments

Chat with documents. Using a Langchain, Chroma and Gradio

Install / Use

/learn @elcronos/ChatDocuments
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Framework

Framework

Limitations

At the moment it only supports PDFs. You can create other document loaders to support other documents: https://python.langchain.com/en/latest/modules/indexes/document_loaders.html

Installation Process

Once you've downloaded Python, follow these steps to install Langchain, Chroma and set up the OpenAI API:

Open a terminal or command prompt and run the following command:

  pip install -r requirements.txt

This will install Langchain and its dependencies as long as Chroma, a vector database plus a little dependency to extract information out of a Word document.

Setup OpenAI API

After signing up for an OpenAI account, you have to create an API key from you account on the platform.openai.com web site.

Run locally

  gradio app.py

Running on local URL: http://127.0.0.1:7861

Optional Deployment (Free and temporal for 72 hours)

To create a public link, set share=True in launch().

In the app.py script, the last line can be replaced by:

demo.queue(concurrency_count=5, max_size=20).launch(share=True)

This will generate a public url that deploys your code only for 72 hours. The url will be displayed in the terminal. You will be able to access that URL from any computer.

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated11mo ago
Forks0

Languages

Python

Security Score

62/100

Audited on May 7, 2025

No findings