langroid 0.47.0__py3-none-any.whl → 0.47.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- langroid/agent/special/doc_chat_agent.py +4 -5
- langroid/agent/special/retriever_agent.py +4 -3
- {langroid-0.47.0.dist-info → langroid-0.47.1.dist-info}/METADATA +1 -1
- {langroid-0.47.0.dist-info → langroid-0.47.1.dist-info}/RECORD +6 -6
- {langroid-0.47.0.dist-info → langroid-0.47.1.dist-info}/WHEEL +0 -0
- {langroid-0.47.0.dist-info → langroid-0.47.1.dist-info}/licenses/LICENSE +0 -0
@@ -237,9 +237,7 @@ class DocChatAgent(ChatAgent):
|
|
237
237
|
self.chunked_docs: List[Document] = []
|
238
238
|
self.chunked_docs_clean: List[Document] = []
|
239
239
|
self.response: None | Document = None
|
240
|
-
|
241
|
-
if len(config.doc_paths) > 0:
|
242
|
-
self.ingest()
|
240
|
+
self.ingest()
|
243
241
|
|
244
242
|
def clear(self) -> None:
|
245
243
|
"""Clear the document collection and the specific collection in vecdb"""
|
@@ -275,8 +273,9 @@ class DocChatAgent(ChatAgent):
|
|
275
273
|
# But let's get all the chunked docs so we can
|
276
274
|
# do keyword and other non-vector searches
|
277
275
|
if self.vecdb is None:
|
278
|
-
|
279
|
-
|
276
|
+
logger.warning("VecDB not set: cannot ingest docs.")
|
277
|
+
else:
|
278
|
+
self.setup_documents(filter=self.config.filter)
|
280
279
|
return
|
281
280
|
self.ingest_doc_paths(self.config.doc_paths) # type: ignore
|
282
281
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
"""
|
2
|
-
|
2
|
+
DEPRECATED: use DocChatAgent instead, with DocChatAgentConfig.retrieve_only=True,
|
3
3
|
and if you want to retrieve FULL relevant doc-contents rather than just extracts,
|
4
4
|
then set DocChatAgentConfig.extraction_granularity=-1
|
5
5
|
|
@@ -47,10 +47,11 @@ class RetrieverAgent(DocChatAgent):
|
|
47
47
|
)
|
48
48
|
|
49
49
|
def get_records(self) -> Sequence[Document]:
|
50
|
-
|
50
|
+
# subclasses should override
|
51
|
+
return []
|
51
52
|
|
52
53
|
def ingest(self) -> None:
|
53
54
|
records = self.get_records()
|
54
55
|
if self.vecdb is None:
|
55
|
-
|
56
|
+
logger.warning("Vector store not configured. Cannot ingest records.")
|
56
57
|
self.vecdb.add_documents(records)
|
@@ -14,11 +14,11 @@ langroid/agent/xml_tool_message.py,sha256=6SshYZJKIfi4mkE-gIoSwjkEYekQ8GwcSiCv7a
|
|
14
14
|
langroid/agent/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
15
|
langroid/agent/callbacks/chainlit.py,sha256=UHB6P_J40vsVnssosqkpkOVWRf9NK4TOY0_G2g_Arsg,20900
|
16
16
|
langroid/agent/special/__init__.py,sha256=gik_Xtm_zV7U9s30Mn8UX3Gyuy4jTjQe9zjiE3HWmEo,1273
|
17
|
-
langroid/agent/special/doc_chat_agent.py,sha256=
|
17
|
+
langroid/agent/special/doc_chat_agent.py,sha256=SrotZ0qw51fKDXlDP2lwTho0PPTuqUogFAT4jjq0ne0,65231
|
18
18
|
langroid/agent/special/lance_doc_chat_agent.py,sha256=s8xoRs0gGaFtDYFUSIRchsgDVbS5Q3C2b2mr3V1Fd-Q,10419
|
19
19
|
langroid/agent/special/lance_tools.py,sha256=qS8x4wi8mrqfbYV2ztFzrcxyhHQ0ZWOc-zkYiH7awj0,2105
|
20
20
|
langroid/agent/special/relevance_extractor_agent.py,sha256=zIx8GUdVo1aGW6ASla0NPQjYYIpmriK_TYMijqAx3F8,4796
|
21
|
-
langroid/agent/special/retriever_agent.py,sha256=
|
21
|
+
langroid/agent/special/retriever_agent.py,sha256=i5TvwDRN5XtT8lSPkoq3Sv8jpoBylisEB2ivRbpunyc,1913
|
22
22
|
langroid/agent/special/table_chat_agent.py,sha256=d9v2wsblaRx7oMnKhLV7uO_ujvk9gh59pSGvBXyeyNc,9659
|
23
23
|
langroid/agent/special/arangodb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
langroid/agent/special/arangodb/arangodb_agent.py,sha256=12Y54c84c9qXV-YXRBcI5HaqyiY75JR4TmqlURYKJAM,25851
|
@@ -127,7 +127,7 @@ langroid/vector_store/pineconedb.py,sha256=otxXZNaBKb9f_H75HTaU3lMHiaR2NUp5MqwLZ
|
|
127
127
|
langroid/vector_store/postgres.py,sha256=wHPtIi2qM4fhO4pMQr95pz1ZCe7dTb2hxl4VYspGZoA,16104
|
128
128
|
langroid/vector_store/qdrantdb.py,sha256=O6dSBoDZ0jzfeVBd7LLvsXu083xs2fxXtPa9gGX3JX4,18443
|
129
129
|
langroid/vector_store/weaviatedb.py,sha256=Yn8pg139gOy3zkaPfoTbMXEEBCiLiYa1MU5d_3UA1K4,11847
|
130
|
-
langroid-0.47.
|
131
|
-
langroid-0.47.
|
132
|
-
langroid-0.47.
|
133
|
-
langroid-0.47.
|
130
|
+
langroid-0.47.1.dist-info/METADATA,sha256=EI6zx7u_-h8K_P_e9BXM1gF8rnEPB1ENObZ-USOXSlU,63473
|
131
|
+
langroid-0.47.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
132
|
+
langroid-0.47.1.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
133
|
+
langroid-0.47.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|