Japanese RAG is a small RAG (Retrieval-Augmented Generation) chatbot that is able to answer questions about the Japanese language. The chatbot is based on the Weaviate knowledge graph, the OpenAI API and Streamlit.
First, clone the repository and install the dependencies with the following commands:
poetry install
- Create a secrets.toml file
- Create a new Weaviate Cluster
- Create a Weaviate API Key
- Create an OpenAI API Key
Finally, add the following credentials to the secrets.toml file:
OPENAI_API_KEY = 'xxx'
WEAVIATE_URL = 'https://xxx'
WEAVIATE_API_KEY = 'xxx'
After that the installation and setup, you can run the Streamlit app with the following command:
poetry run streamlit run app.py
You can upload your data as ZIP-archive (containing individual text-files, example data) under the Data tab.