-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# Context retrieval example | ||
|
||
### [de_wiki_context.py](de_wiki_context.py) | ||
## [de_wiki_context.py](de_wiki_context.py) | ||
|
||
- Pulze key is required in the `.env` file | ||
- Running it for the first time will download the de-wiki dataset and compute the embeddings | ||
- Pulze key is required in the `.env` file for access to the `pulze` model | ||
- Langfuse key is required in the `.env` file for observability | ||
- The first time will download the dataset and compute the embeddings | ||
- You can set `EMBEDDINGS_HOW_MANY_K` to a lower value if you don't want to wait | ||
- Embeddings are cached in the `data/` folder | ||
- A few sample questions are provided | ||
|
||
## [gen_context.py](gen_context.py) | ||
|
||
This will process all the questions from the main project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters