Skip to content

Commit

Permalink
chore: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
umbertogriffo committed Dec 7, 2024
1 parent 8e9784a commit 2aeca30
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions chatbot/bot/memory/vector_database/chroma.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def __query_collection(
where_document: dict[str, str] | None = None,
**kwargs: Any,
):
"""Query the chroma collection.
"""
Query the chroma collection.
Args:
query_texts: List of query texts.
Expand Down Expand Up @@ -86,7 +87,8 @@ def add_texts(
metadatas: list[dict] | None = None,
ids: list[str] | None = None,
) -> list[str]:
"""Run more texts through the embeddings and add to the vectorstore.
"""
Run more texts through the embeddings and add to the vectorstore.
Args:
texts (Iterable[str]): Texts to add to the vectorstore.
Expand Down Expand Up @@ -249,7 +251,8 @@ def similarity_search_with_threshold(
return retrieved_contents, sources

def similarity_search(self, query: str, k: int = 4, filter: dict[str, str] | None = None) -> list[Document]:
"""Run similarity search with Chroma.
"""
Run similarity search with Chroma.
Args:
query (str): Query text to search for.
Expand Down

0 comments on commit 2aeca30

Please sign in to comment.