Sphere Vault leverages the OP Stack (OpenAI + Pinecone Vector Database) to allow users to upload their custom knowledge base files and inquire about their contents.
With Sphere Vault, you can:
- Upload a variety of popular document types via a simple React frontend to create a custom knowledge base
- Retrieve accurate and relevant answers based on the content of your uploaded documents
- See the filenames and specific context snippets that inform the answer
- Explore the power of the OP Stack (OpenAI + Pinecone Vector Database) in a user-friendly interface
- Load entire libraries' worth of books into Sphere Vault
- node: v19
- go: v1.18.9 darwin/arm64
- poppler
-
Install manual dependencies:
- Install Go: Follow the Go docs here
- Install node v19: Use nvm to install node v19
- Install poppler:
sudo apt-get install -y poppler-utils
on Ubuntu, orbrew install poppler
on Mac
-
Set up your API keys and endpoints in the
secret
folder:- Create a new file
secret/openai_api_key
and paste your OpenAI API key into it:echo "your_openai_api_key_here" > secret/openai_api_key
- Create a new file
secret/pinecone_api_key
and paste your Pinecone API key into it:echo "your_pinecone_api_key_here" > secret/pinecone_api_key
- Create a new file
secret/pinecone_api_endpoint
and paste your Pinecone API endpoint into it:echo "https://<your-url>.pinecone.io" > secret/pinecone_api_endpoint
- Create a new file
-
Running the development environment:
- Install JavaScript package dependencies:
npm install
- Run the Golang web server (default port
:8100
):npm start
- In another terminal window, run Webpack to compile the JS code and create a bundle.js file:
npm run dev
- Visit the local version of the site at http://localhost:8100
- Install JavaScript package dependencies:
For more detailed information about uploading files, asking questions, and the underlying technology, please refer to the original repository.
This project is licensed under the BSD 3-Clause License. Please find the full license text in the LICENSE
file of the project repository.