CSV Knowledge Chatbot is a Rails application that allows users to upload a CSV file (Just from Readwise currently) and then interact with the data through a chat interface. It's designed to make data exploration easier and more intuitive, without the need for advanced technical knowledge or database querying skills.
- Upload Readwise CSV files and embed them in the application.
- Interact with your data through a user-friendly chat interface.
- Ask questions about your data and get immediate answers.
This uses the LangchainRB as the main way to interact with the AI apis. When you upload a CSV it will try to use the OpenAI ada embedding model on all of the rows in the CSV that you uploaded. It will store the notes along with the note's vector representation in a PGVector store. You could connect to a local instance, but I opted to use Supabase for this app.
This application requires Ruby, Rails, and Node.js. It also uses Yarn for package management.
To install the application:
-
Clone the repository:
git clone https://github.com/nheingit/knowledge-retrieval.git
-
Change into the application directory:
cd knowledge-retrieval
-
Install the required gems:
bundle install
-
Install the required Node.js packages:
yarn install
-
Set up the database:
rails db:setup
-
Start the app:
bin/dev
To use the application:
- Navigate to the application in your web browser (the default address is http://localhost:3000).
- Use the interface to upload a CSV file.
- Once the file is uploaded, you can start asking questions about your data in the chat interface.
This project is licensed under the MIT License - see the LICENSE file for details.