Bump package version to 0.1.27 (#994)

Co-authored-by: Deven Patel <deven298@yahoo.com>
This commit is contained in:
Deven Patel
2023-12-06 00:03:13 -08:00
committed by GitHub
parent 51b4966801
commit a4831d6ed9
3 changed files with 6 additions and 9 deletions

View File

@@ -536,13 +536,10 @@ class EmbedChain(JSONSerializable):
or the dry run result
:rtype: str, if citations is False, otherwise Tuple[str,List[Tuple[str,str,str]]]
"""
if "citations" in kwargs:
citations = kwargs.pop("citations")
else:
citations = False
citations = kwargs.get("citations", False)
db_kwargs = {key: value for key, value in kwargs.items() if key != "citations"}
contexts = self._retrieve_from_database(
input_query=input_query, config=config, where=where, citations=citations, **kwargs
input_query=input_query, config=config, where=where, citations=citations, **db_kwargs
)
if citations and len(contexts) > 0 and isinstance(contexts[0], tuple):
contexts_data_for_llm_query = list(map(lambda x: x[0], contexts))