The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: jaguar vector store fix integer-element error when joining metadata values (#15939)
JaguarDBb11fd3bedc07
diff --git a/libs/community/langchain_community/vectorstores/jaguar.py b/libs/community/langchain_community/vectorstores/jaguar.pyindex 688cc81fa1..2771530d66 100644--- a/libs/community/langchain_community/vectorstores/jaguar.py+++ b/libs/community/langchain_community/vectorstores/jaguar.py@@ -158,6 +158,7 @@ class Jaguar(VectorStore):"""vcol = self._vector_indexfilecol = kwargs.get("file_column", "")+ text_tag = kwargs.get("text_tag", "")podstorevcol = self._pod + "." + self._store + "." + vcolq = "textcol " + podstorevcoljs = self.run(q)@@ -165,6 +166,12 @@ class Jaguar(VectorStore):return []textcol = js["data"]+ if text_tag != "":+ tag_texts = []+ for t in texts:+ tag_texts.append(text_tag + " " + t)+ texts = tag_texts+embeddings = self._embedding.embed_documents(list(texts))ids = []if metadatas is None:@@ -444,4 +451,5 @@ class Jaguar(VectorStore):nvec.append(k)vvec.append(v)- return nvec, vvec, filepath+ vvec_s = [str(e) for e in vvec]+ return nvec, vvec_s, filepath