feat: Get answers using preferred number of chunks

This commit is contained in:
impulsivus 2023-05-24 21:12:42 +03:00
parent 573c4363c4
commit cf709a6b7a
No known key found for this signature in database
GPG key ID: B0D9B2893A7ADC1A
3 changed files with 5 additions and 2 deletions

View file

@ -22,6 +22,7 @@ PERSIST_DIRECTORY: is the folder you want your vectorstore in
MODEL_PATH: Path to your GPT4All or LlamaCpp supported LLM
MODEL_N_CTX: Maximum token limit for the LLM model
EMBEDDINGS_MODEL_NAME: SentenceTransformers embeddings model name (see https://www.sbert.net/docs/pretrained_models.html)
TARGET_SOURCE_CHUNKS: The amount of chunks (sources) that will be used to answer a question
```
Note: because of the way `langchain` loads the `SentenceTransformers` embeddings, the first time you run the script it will require internet connection to download the embeddings model itself.