This repository has been archived by the owner on Oct 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: cohere_rerank postprocessor + expand env vars in flows config (#31)
- Loading branch information
1 parent
28e6220
commit d0fe45e
Showing
7 changed files
with
184 additions
and
88 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
flows: | ||
foo: | ||
default: false | ||
ingestion: | ||
- filetypes: [".md"] | ||
documentloader: | ||
name: plaintext | ||
textsplitter: | ||
name: markdown | ||
transformers: | ||
- name: filter_markdown_docs_no_content | ||
retrieval: | ||
retriever: | ||
name: basic | ||
options: | ||
topK: 25 | ||
postprocessors: | ||
- name: cohere_rerank | ||
options: | ||
apiKey: ${COHERE_API_KEY} | ||
topN: 3 | ||
model: rerank-multilingual-v3.0 |
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
Oops, something went wrong.