langroid 0.1.27__py3-none-any.whl → 0.1.28__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/utils/logging.py +3 -5
- langroid/vector_store/chromadb.py +2 -3
- langroid/vector_store/qdrantdb.py +2 -3
- {langroid-0.1.27.dist-info → langroid-0.1.28.dist-info}/METADATA +12 -5
- {langroid-0.1.27.dist-info → langroid-0.1.28.dist-info}/RECORD +7 -7
- {langroid-0.1.27.dist-info → langroid-0.1.28.dist-info}/LICENSE +0 -0
- {langroid-0.1.27.dist-info → langroid-0.1.28.dist-info}/WHEEL +0 -0
langroid/utils/logging.py
CHANGED
@@ -124,8 +124,6 @@ class RichFileLogger:
|
|
124
124
|
|
125
125
|
@no_type_check
|
126
126
|
def log(self, message: str) -> None:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
self.file.flush()
|
131
|
-
self.file.close()
|
127
|
+
with open(self.log_file, "a") as f:
|
128
|
+
console = Console(file=f, force_terminal=True, width=200)
|
129
|
+
console.print(message)
|
@@ -7,6 +7,7 @@ from langroid.embedding_models.base import (
|
|
7
7
|
EmbeddingModel,
|
8
8
|
EmbeddingModelsConfig,
|
9
9
|
)
|
10
|
+
from langroid.embedding_models.models import OpenAIEmbeddingsConfig
|
10
11
|
from langroid.mytypes import DocMetaData, Document
|
11
12
|
from langroid.utils.configuration import settings
|
12
13
|
from langroid.utils.output.printing import print_long_text
|
@@ -19,9 +20,7 @@ class ChromaDBConfig(VectorStoreConfig):
|
|
19
20
|
type: str = "chroma"
|
20
21
|
collection_name: str = "chroma-langroid"
|
21
22
|
storage_path: str = ".chroma/data"
|
22
|
-
embedding: EmbeddingModelsConfig =
|
23
|
-
model_type="openai",
|
24
|
-
)
|
23
|
+
embedding: EmbeddingModelsConfig = OpenAIEmbeddingsConfig()
|
25
24
|
host: str = "127.0.0.1"
|
26
25
|
port: int = 6333
|
27
26
|
|
@@ -19,6 +19,7 @@ from langroid.embedding_models.base import (
|
|
19
19
|
EmbeddingModel,
|
20
20
|
EmbeddingModelsConfig,
|
21
21
|
)
|
22
|
+
from langroid.embedding_models.models import OpenAIEmbeddingsConfig
|
22
23
|
from langroid.mytypes import Document
|
23
24
|
from langroid.utils.configuration import settings
|
24
25
|
from langroid.vector_store.base import VectorStore, VectorStoreConfig
|
@@ -32,9 +33,7 @@ class QdrantDBConfig(VectorStoreConfig):
|
|
32
33
|
|
33
34
|
collection_name: str | None = None
|
34
35
|
storage_path: str = ".qdrant/data"
|
35
|
-
embedding: EmbeddingModelsConfig =
|
36
|
-
model_type="openai",
|
37
|
-
)
|
36
|
+
embedding: EmbeddingModelsConfig = OpenAIEmbeddingsConfig()
|
38
37
|
distance: str = Distance.COSINE
|
39
38
|
|
40
39
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: langroid
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.28
|
4
4
|
Summary: Harness LLMs with Multi-Agent Programming
|
5
5
|
License: MIT
|
6
6
|
Author: Prasad Chalasani
|
@@ -98,6 +98,8 @@ collaboratively solve a problem by exchanging messages.
|
|
98
98
|
This Multi-Agent paradigm is inspired by the
|
99
99
|
[Actor Framework](https://en.wikipedia.org/wiki/Actor_model)
|
100
100
|
(but you do not need to know anything about this!).
|
101
|
+
We welcome contributions -- See the [contributions](./CONTRIBUTING.md) document
|
102
|
+
for ideas on what to contribute.
|
101
103
|
|
102
104
|
|
103
105
|
# :rocket: Demo
|
@@ -190,9 +192,16 @@ Your `.env` file should look like this:
|
|
190
192
|
OPENAI_API_KEY=your-key-here-without-quotes
|
191
193
|
````
|
192
194
|
|
195
|
+
Alternatively, you can set this as an environment variable in your shell
|
196
|
+
(you will need to do this every time you open a new shell):
|
197
|
+
```bash
|
198
|
+
export OPENAI_API_KEY=your-key-here-without-quotes
|
199
|
+
```
|
200
|
+
|
193
201
|
|
194
202
|
<details>
|
195
|
-
<summary>Optional Setup Instructions (click to expand) </summary>
|
203
|
+
<summary><b>Optional Setup Instructions (click to expand) </b></summary>
|
204
|
+
|
196
205
|
All of the below are optional and not strictly needed to run any of the examples.
|
197
206
|
|
198
207
|
- **Qdrant** Vector Store API Key, URL. This is only required if you want to use Qdrant cloud.
|
@@ -544,9 +553,7 @@ folder of the `langroid-examples` repo.
|
|
544
553
|
|
545
554
|
---
|
546
555
|
|
547
|
-
# :heart: Thank you to our supporters
|
548
|
-
|
549
|
-
[](https://github.com/langroid/langroid/stargazers)
|
556
|
+
# :heart: Thank you to our [supporters](https://github.com/langroid/langroid/stargazers)
|
550
557
|
|
551
558
|
# Contributors
|
552
559
|
|
@@ -50,7 +50,7 @@ langroid/utils/constants.py,sha256=_keF-e-GIwEFvBxKJbC1Ry0u3SVWQBk4HRX0NpV2Qq8,4
|
|
50
50
|
langroid/utils/docker.py,sha256=kJQOLTgM0x9j9pgIIqp0dZNZCTvoUDhp6i8tYBq1Jr0,1105
|
51
51
|
langroid/utils/llms/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
52
52
|
langroid/utils/llms/strings.py,sha256=CSAX9Z6FQOLXOzbLMe_Opqtc3ruDAKTTk7cPqc6Blh0,263
|
53
|
-
langroid/utils/logging.py,sha256=
|
53
|
+
langroid/utils/logging.py,sha256=g9Sv-41pAmKu5kWeYHUBUMDq_HID_nrVkaRFTHTcrf4,3812
|
54
54
|
langroid/utils/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
55
55
|
langroid/utils/output/printing.py,sha256=ilm__9nS3FoY1Y-6k11pIaFM5tID8Jqyfr8LxfX5QEo,1311
|
56
56
|
langroid/utils/system.py,sha256=I20DaIP0LfRJKdV8R4s60h7c6IvEm0n98nvmzIBK4DA,1138
|
@@ -59,10 +59,10 @@ langroid/utils/web/login.py,sha256=1iz9eUAHa87vpKIkzwkmFa00avwFWivDSAr7QUhK7U0,2
|
|
59
59
|
langroid/utils/web/selenium_login.py,sha256=mYI6EvVmne34N9RajlsxxRqJQJvV-WG4LGp6sEECHPw,1156
|
60
60
|
langroid/vector_store/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
61
61
|
langroid/vector_store/base.py,sha256=QZx3NUNwf2I0r3A7iuoUHIRGbqt_pFGD0hq1R-Yg8iM,3740
|
62
|
-
langroid/vector_store/chromadb.py,sha256=
|
62
|
+
langroid/vector_store/chromadb.py,sha256=s5pQkKjaMP-Tt5A8M10EInFzttaALPbJAq7q4gf0TKg,5235
|
63
63
|
langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
|
64
|
-
langroid/vector_store/qdrantdb.py,sha256=
|
65
|
-
langroid-0.1.
|
66
|
-
langroid-0.1.
|
67
|
-
langroid-0.1.
|
68
|
-
langroid-0.1.
|
64
|
+
langroid/vector_store/qdrantdb.py,sha256=Cnr1cLru9zTMexYRTW3lSTcmAPCtEYsjIxPXU5sO0dg,8583
|
65
|
+
langroid-0.1.28.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
|
66
|
+
langroid-0.1.28.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
67
|
+
langroid-0.1.28.dist-info/METADATA,sha256=vFDi4ASj2m0PGFS9cak1fsIaNkcSgVDkXFQ7F2LZMlU,22064
|
68
|
+
langroid-0.1.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|