We use Poetry to manage dependencies.
poetry init
poetry install
Create testdata
directory in the root directory and add files.
Now we only support
.md
files.
(Optional) Create a .env
file in the root directory and add the following environment variables:
LANGCHAIN_TRACING_V2=true
LANGCHAIN_API_KEY=<LANGCHAIN_API_KEY>
Note: You can get the
LANGCHAIN_API_KEY
from LangSmith.
Run ollama:
ollama serve
Default embedding model is
chevalblanc/acge_text_embedding
and default language model isqwen:4b
.
Open a new terminal and run the following command:
cd src
python main.py
Then you can ask questions to the model.
If you want to exit, type bye
.