langroid 0.56.6__py3-none-any.whl → 0.56.7__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.
@@ -1403,8 +1403,9 @@ class DocChatAgent(ChatAgent):
1403
1403
  # so we need to take the top n_similar_chunks from the combined list
1404
1404
  passages = [
1405
1405
  id2doc[id]
1406
- for i, (id, _) in enumerate(id2_reciprocal_score.items())
1407
- if i < self.config.n_similar_chunks
1406
+ for id, _ in list(id2_reciprocal_score.items())[
1407
+ : self.config.n_similar_chunks
1408
+ ]
1408
1409
  ]
1409
1410
  # passages must have distinct ids
1410
1411
  assert len(passages) == len(set([d.id() for d in passages])), (
@@ -120,7 +120,7 @@ class ParsingConfig(BaseSettings):
120
120
  # aim to have at least this many chars per chunk when truncating due to punctuation
121
121
  min_chunk_chars: int = 350
122
122
  discard_chunk_chars: int = 5 # discard chunks with fewer than this many chars
123
- n_similar_docs: Optional[int] = 4 # deprecated
123
+ n_similar_docs: Optional[int] = None # deprecated
124
124
  n_neighbor_ids: int = 5 # window size to store around each chunk
125
125
  separators: List[str] = ["\n\n", "\n", " ", ""]
126
126
  token_encoding_model: str = "text-embedding-3-small"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: langroid
3
- Version: 0.56.6
3
+ Version: 0.56.7
4
4
  Summary: Harness LLMs with Multi-Agent Programming
5
5
  Author-email: Prasad Chalasani <pchalasani@gmail.com>
6
6
  License: MIT
@@ -15,7 +15,7 @@ langroid/agent/xml_tool_message.py,sha256=oeBKnJNoGaKdtz39XoWGMTNlVyXew2MWH5lgtY
15
15
  langroid/agent/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  langroid/agent/callbacks/chainlit.py,sha256=4rJw07NIIVTIVvksVY08h5PdLE_kRoJItjbQM0UjRn0,20962
17
17
  langroid/agent/special/__init__.py,sha256=gik_Xtm_zV7U9s30Mn8UX3Gyuy4jTjQe9zjiE3HWmEo,1273
18
- langroid/agent/special/doc_chat_agent.py,sha256=q-W4fDM-kdv_keBQjIsSZEUcmUvDAK1Cb2GcfJ9KhmY,68852
18
+ langroid/agent/special/doc_chat_agent.py,sha256=9Evo3d8iniCmU6Liw0lq2HElPcavHA_M9I7_kUMhrRk,68860
19
19
  langroid/agent/special/doc_chat_task.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  langroid/agent/special/lance_doc_chat_agent.py,sha256=6pIqi2DF-MvYYN3-blsdUgulYnOBTl7I21T7wPAt1zM,10413
21
21
  langroid/agent/special/lance_tools.py,sha256=qS8x4wi8mrqfbYV2ztFzrcxyhHQ0ZWOc-zkYiH7awj0,2105
@@ -94,7 +94,7 @@ langroid/parsing/file_attachment.py,sha256=ryJVhVFOhINrfkf9Z0vWTTwCnm80z2qzXgp20
94
94
  langroid/parsing/md_parser.py,sha256=JUgsUpCaeAuBndmtDaJR9HMZaje1gmtXtaLXJHst3i8,21340
95
95
  langroid/parsing/para_sentence_split.py,sha256=AJBzZojP3zpB-_IMiiHismhqcvkrVBQ3ZINoQyx_bE4,2000
96
96
  langroid/parsing/parse_json.py,sha256=aADo38bAHQhC8on4aWZZzVzSDy-dK35vRLZsFI2ewh8,4756
97
- langroid/parsing/parser.py,sha256=pFolKsWxr2uQ5zoAqby9eunZ0baBlzCs9LfJ6NPV_8I,15623
97
+ langroid/parsing/parser.py,sha256=Wp_zVuKhWv42_nB0ZBvGU7PRuuFlk_MGBqnJckXX4BE,15626
98
98
  langroid/parsing/pdf_utils.py,sha256=QogxU_B1N3WSLyZ9PEcJDaJoZShKs7CPQRVyF1V2DiE,3143
99
99
  langroid/parsing/repo_loader.py,sha256=NpysuyzRHvgL3F4BB_wGo5sCUnZ3FOlVCJmZ7CaUdbs,30202
100
100
  langroid/parsing/routing.py,sha256=-FcnlqldzL4ZoxuDwXjQPNHgBe9F9-F4R6q7b_z9CvI,1232
@@ -137,7 +137,7 @@ langroid/vector_store/pineconedb.py,sha256=otxXZNaBKb9f_H75HTaU3lMHiaR2NUp5MqwLZ
137
137
  langroid/vector_store/postgres.py,sha256=wHPtIi2qM4fhO4pMQr95pz1ZCe7dTb2hxl4VYspGZoA,16104
138
138
  langroid/vector_store/qdrantdb.py,sha256=O6dSBoDZ0jzfeVBd7LLvsXu083xs2fxXtPa9gGX3JX4,18443
139
139
  langroid/vector_store/weaviatedb.py,sha256=Yn8pg139gOy3zkaPfoTbMXEEBCiLiYa1MU5d_3UA1K4,11847
140
- langroid-0.56.6.dist-info/METADATA,sha256=Obrt0l7fxia2D7Fd9M9SQFCulOxfAJwqo9DxorPzgfA,65744
141
- langroid-0.56.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
142
- langroid-0.56.6.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
143
- langroid-0.56.6.dist-info/RECORD,,
140
+ langroid-0.56.7.dist-info/METADATA,sha256=czhMl375GcCjQoavgVE7vQUbMNkan6D4_S83glup2to,65744
141
+ langroid-0.56.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
142
+ langroid-0.56.7.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
143
+ langroid-0.56.7.dist-info/RECORD,,