feat(llm): adds serveral settings for llamacpp and ollama (#1703)

This commit is contained in:
icsy7867 2024-03-11 17:51:05 -04:00 committed by GitHub
parent 410bf7a71f
commit 02dc83e8e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 91 additions and 8 deletions

View file

@ -137,9 +137,11 @@ class VectorStoreComponent:
index=index,
similarity_top_k=similarity_top_k,
doc_ids=context_filter.docs_ids if context_filter else None,
filters=_doc_id_metadata_filter(context_filter)
if self.settings.vectorstore.database != "qdrant"
else None,
filters=(
_doc_id_metadata_filter(context_filter)
if self.settings.vectorstore.database != "qdrant"
else None
),
)
def close(self) -> None: