langroid 0.1.246__py3-none-any.whl → 0.1.247__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/base.py +7 -0
- {langroid-0.1.246.dist-info → langroid-0.1.247.dist-info}/METADATA +7 -2
- {langroid-0.1.246.dist-info → langroid-0.1.247.dist-info}/RECORD +5 -5
- {langroid-0.1.246.dist-info → langroid-0.1.247.dist-info}/LICENSE +0 -0
- {langroid-0.1.246.dist-info → langroid-0.1.247.dist-info}/WHEEL +0 -0
langroid/agent/base.py
CHANGED
@@ -94,9 +94,16 @@ class Agent(ABC):
|
|
94
94
|
self._indent = ""
|
95
95
|
self.llm = LanguageModel.create(config.llm)
|
96
96
|
self.vecdb = VectorStore.create(config.vecdb) if config.vecdb else None
|
97
|
+
# token_encoding_model is used to obtain the tokenizer,
|
98
|
+
# so we ensure that the tokenizer corresponding to the model is used.
|
99
|
+
if config.parsing is not None and self.config.llm is not None:
|
100
|
+
config.parsing.token_encoding_model = (
|
101
|
+
self.config.llm.chat_model or self.config.llm.completion_model
|
102
|
+
)
|
97
103
|
self.parser: Optional[Parser] = (
|
98
104
|
Parser(config.parsing) if config.parsing else None
|
99
105
|
)
|
106
|
+
|
100
107
|
self.callbacks = SimpleNamespace(
|
101
108
|
start_llm_stream=lambda: noop_fn,
|
102
109
|
cancel_llm_stream=noop_fn,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: langroid
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.247
|
4
4
|
Summary: Harness LLMs with Multi-Agent Programming
|
5
5
|
License: MIT
|
6
6
|
Author: Prasad Chalasani
|
@@ -99,7 +99,7 @@ Requires-Dist: sentence-transformers (==2.2.2) ; extra == "hf-embeddings"
|
|
99
99
|
Requires-Dist: sqlalchemy (>=2.0.19,<3.0.0)
|
100
100
|
Requires-Dist: tantivy (>=0.21.0,<0.22.0)
|
101
101
|
Requires-Dist: thefuzz (>=0.20.0,<0.21.0)
|
102
|
-
Requires-Dist: tiktoken (>=0.
|
102
|
+
Requires-Dist: tiktoken (>=0.7.0,<0.8.0)
|
103
103
|
Requires-Dist: torch (==2.0.0) ; extra == "hf-embeddings" or extra == "transformers"
|
104
104
|
Requires-Dist: trafilatura (>=1.5.0,<2.0.0)
|
105
105
|
Requires-Dist: transformers (>=4.40.1,<5.0.0) ; extra == "transformers"
|
@@ -236,6 +236,11 @@ teacher_task.run()
|
|
236
236
|
<details>
|
237
237
|
<summary> <b>Click to expand</b></summary>
|
238
238
|
|
239
|
+
- **May 2024:**
|
240
|
+
- `gpt-4o` is now the default LLM throughout; Update tests and examples to work
|
241
|
+
with this LLM; use tokenizer corresponding to the LLM.
|
242
|
+
- `gemini 1.5 pro` support via `litellm`
|
243
|
+
- `QdrantDB:` update to support learned sparse embeddings.
|
239
244
|
- **Apr 2024:**
|
240
245
|
- **0.1.236**: Support for open LLMs hosted on Groq, e.g. specify
|
241
246
|
`chat_model="groq/llama3-8b-8192"`.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
langroid/__init__.py,sha256=zsYpGiAUsvyzZzjm964NUamsJImrXSJPVGz9a2jE_uY,1679
|
2
2
|
langroid/agent/__init__.py,sha256=_D8dxnfdr92ch1CIrUkKjrB5HVvsQdn62b1Fb2kBxV8,785
|
3
|
-
langroid/agent/base.py,sha256=
|
3
|
+
langroid/agent/base.py,sha256=Aa8e_dHibXfpOXnldGCrVvObFKhO0P05Is97AuVGFLo,35569
|
4
4
|
langroid/agent/batch.py,sha256=feRA_yRG768ElOQjrKEefcRv6Aefd_yY7qktuYUQDwc,10040
|
5
5
|
langroid/agent/callbacks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
6
|
langroid/agent/callbacks/chainlit.py,sha256=uIfdmoOKIfzBVeM2ce0V5SCfHjcvYyaz13dfjFXCEN4,21020
|
@@ -121,7 +121,7 @@ langroid/vector_store/meilisearch.py,sha256=d2huA9P-NoYRuAQ9ZeXJmMKr7ry8u90RUSR2
|
|
121
121
|
langroid/vector_store/momento.py,sha256=9cui31TTrILid2KIzUpBkN2Ey3g_CZWOQVdaFsA4Ors,10045
|
122
122
|
langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
|
123
123
|
langroid/vector_store/qdrantdb.py,sha256=sk5Qb2ZNbooi0rorsMuqIMokF7WADw6PJ0D6goM2XBw,16802
|
124
|
-
langroid-0.1.
|
125
|
-
langroid-0.1.
|
126
|
-
langroid-0.1.
|
127
|
-
langroid-0.1.
|
124
|
+
langroid-0.1.247.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
125
|
+
langroid-0.1.247.dist-info/METADATA,sha256=aFpf1jK3j5mmhySliisY85x10w54ikl3BAFi9s9tZmA,49426
|
126
|
+
langroid-0.1.247.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
127
|
+
langroid-0.1.247.dist-info/RECORD,,
|
File without changes
|
File without changes
|