From cdfebe6f438461549a5b3647c697bf4bbaa51d47 Mon Sep 17 00:00:00 2001 From: Simon Suo Date: Tue, 31 Oct 2023 23:40:48 -0700 Subject: [PATCH] Update missing changelog and fix typing (#8620) * update change log and fix types * wip --- CHANGELOG.md | 9 +++++++++ llama_index/vector_stores/singlestoredb.py | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6df4023a5515..ab83ac06d304a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,20 @@ ## Unreleased +### New Features + +- Add `SingleStoreDB` integration (#7991) +- Add support for ChromaDB PersistentClient (#8582) + ### Bug Fixes / Nits - Update dataType in Weaviate (#8608) - In Knowledge Graph Index with hybrid retriever_mode, - return the nodes found by keyword search when 'No Relationship found' +- Fix exceed context length error in chat engines (#8530) +- Retrieve actual content of all the triplets from KG (#8579) +- Return the nodes found by Keywords when no relationship is found by embeddings in hybrid retriever_mode in `KnowledgeGraphIndex` (#8575) +- Optimize content of retriever tool and minor bug fix (#8588) ## [0.8.56] - 2023-10-30 diff --git a/llama_index/vector_stores/singlestoredb.py b/llama_index/vector_stores/singlestoredb.py index 842405fe05f3d..96e1eda31ee8a 100644 --- a/llama_index/vector_stores/singlestoredb.py +++ b/llama_index/vector_stores/singlestoredb.py @@ -1,6 +1,6 @@ import json import logging -from typing import Any, List, Optional +from typing import Any, List, Optional, Sequence from sqlalchemy.pool import QueuePool @@ -172,7 +172,7 @@ def delete(self, ref_doc_id: str, **delete_kwargs: Any) -> None: conn.close() def query( - self, query: VectorStoreQuery, filter: Optional[dict] = None + self, query: VectorStoreQuery, filter: Optional[dict] = None, **kwargs: Any ) -> VectorStoreQueryResult: """ Query index for top k most similar nodes. @@ -218,7 +218,7 @@ def build_where_clause( build_where_clause(where_clause_values, filter) where_clause += " AND ".join(arguments) - results = [] + results: Sequence[Any] = [] if query_embedding: try: cur = conn.cursor()