Closed iwilltry42 closed 4 months ago
This PR adds the cohere_rerank postprocessor. Cohere offers free trial keys: https://dashboard.cohere.com/api-keys
cohere_rerank
Additionally, environment variables ${var} and $var are now expanded in the flows-config files, so ${COHERE_API_KEY} in the example config below is inferred from the environment.
${var}
$var
${COHERE_API_KEY}
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 PR adds the
cohere_rerank
postprocessor. Cohere offers free trial keys: https://dashboard.cohere.com/api-keysAdditionally, environment variables
${var}
and$var
are now expanded in the flows-config files, so${COHERE_API_KEY}
in the example config below is inferred from the environment.