Home
Softono
a

alejandro-ao

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
2

Software by alejandro-ao

langchain-ask-pdf
Open Source

langchain-ask-pdf

# Langchain Ask PDF (Tutorial) >You may find the step-by-step video tutorial to build this application [on Youtube](https://youtu.be/wUAUdEw5oxM). This is a Python application that allows you to load a PDF and ask questions about it using natural language. The application uses a LLM to generate a response about your PDF. The LLM will not answer questions unrelated to the document. ## How it works The application reads the PDF and splits the text into smaller chunks that can be then fed into a LLM. It uses OpenAI embeddings to create vector representations of the chunks. The application then finds the chunks that are semantically similar to the question that the user asked and feeds those chunks to the LLM to generate a response. The application uses Streamlit to create the GUI and Langchain to deal with the LLM. ## Installation To install the repository, please clone this repository and install the requirements: ``` pip install -r requirements.txt ``` You will also need to add your OpenAI API key to the `.env` file. ## Usage To use the application, run the `main.py` file with the streamlit CLI (after having installed streamlit): ``` streamlit run app.py ``` ## Contributing This repository is for educational purposes only and is not intended to receive further contributions. It is supposed to be used as support material for the YouTube tutorial that shows how to build the project.

AI Agents Knowledge Bases & RAG Task & To-Do Apps
636 Github Stars
langchain-ask-csv
Open Source

langchain-ask-csv

# Langchain Chat-CSV with OpenAI (Tutorial) > You can find the step-by-step video tutorial to build this application [on YouTube](https://youtu.be/tjeti5vXWOU). This is a Python application that enables you to load a CSV file and ask questions about its contents using natural language. The application leverages Language Models (LLMs) to generate responses based on the CSV data. The LLM will only provide answers related to the information present in the CSV. ## How it works The application reads the CSV file and processes the data. It utilizes OpenAI LLMs alongside with Langchain Agents in order to answer your questions. The CSV agent then uses tools to find solutions to your questions and generates an appropriate response with the help of a LLM. The application employs Streamlit to create the graphical user interface (GUI) and utilizes Langchain to interact with the LLM. ## Installation To install the repository, follow these steps: 1. Clone this repository to your local machine. 2. Install the necessary dependencies by running the following command: ``` pip install -r requirements.txt ``` 3. Additionally, you need to obtain an OpenAI API key and add it to the `.env` file. ## Usage To use the application, execute the `main.py` file using the Streamlit CLI. Make sure you have Streamlit installed before running the application. Run the following command in your terminal: ``` streamlit run main.py ``` ## Contributing This repository is intended for educational purposes only and is not designed to accept external contributions. It serves as supplemental material for the YouTube tutorial, demonstrating how to build the project. For any suggestions or improvements related to the tutorial content, please feel free to reach out through the YouTube channel's comment section.

LLM Tools & Chat UIs Knowledge Bases & RAG
152 Github Stars