langroid 0.32.2__tar.gz → 0.33.3__tar.gz

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.
Files changed (128) hide show
  1. {langroid-0.32.2 → langroid-0.33.3}/PKG-INFO +149 -123
  2. {langroid-0.32.2 → langroid-0.33.3}/README.md +11 -21
  3. langroid-0.33.3/pyproject.toml +356 -0
  4. langroid-0.32.2/langroid/__init__.py +0 -106
  5. langroid-0.32.2/langroid/agent/__init__.py +0 -41
  6. langroid-0.32.2/langroid/agent/base.py +0 -1983
  7. langroid-0.32.2/langroid/agent/batch.py +0 -398
  8. langroid-0.32.2/langroid/agent/callbacks/__init__.py +0 -0
  9. langroid-0.32.2/langroid/agent/callbacks/chainlit.py +0 -598
  10. langroid-0.32.2/langroid/agent/chat_agent.py +0 -1899
  11. langroid-0.32.2/langroid/agent/chat_document.py +0 -454
  12. langroid-0.32.2/langroid/agent/openai_assistant.py +0 -882
  13. langroid-0.32.2/langroid/agent/special/__init__.py +0 -59
  14. langroid-0.32.2/langroid/agent/special/arangodb/__init__.py +0 -0
  15. langroid-0.32.2/langroid/agent/special/arangodb/arangodb_agent.py +0 -656
  16. langroid-0.32.2/langroid/agent/special/arangodb/system_messages.py +0 -186
  17. langroid-0.32.2/langroid/agent/special/arangodb/tools.py +0 -107
  18. langroid-0.32.2/langroid/agent/special/arangodb/utils.py +0 -36
  19. langroid-0.32.2/langroid/agent/special/doc_chat_agent.py +0 -1466
  20. langroid-0.32.2/langroid/agent/special/lance_doc_chat_agent.py +0 -262
  21. langroid-0.32.2/langroid/agent/special/lance_rag/__init__.py +0 -9
  22. langroid-0.32.2/langroid/agent/special/lance_rag/critic_agent.py +0 -198
  23. langroid-0.32.2/langroid/agent/special/lance_rag/lance_rag_task.py +0 -82
  24. langroid-0.32.2/langroid/agent/special/lance_rag/query_planner_agent.py +0 -260
  25. langroid-0.32.2/langroid/agent/special/lance_tools.py +0 -61
  26. langroid-0.32.2/langroid/agent/special/neo4j/__init__.py +0 -0
  27. langroid-0.32.2/langroid/agent/special/neo4j/csv_kg_chat.py +0 -174
  28. langroid-0.32.2/langroid/agent/special/neo4j/neo4j_chat_agent.py +0 -433
  29. langroid-0.32.2/langroid/agent/special/neo4j/system_messages.py +0 -120
  30. langroid-0.32.2/langroid/agent/special/neo4j/tools.py +0 -32
  31. langroid-0.32.2/langroid/agent/special/relevance_extractor_agent.py +0 -127
  32. langroid-0.32.2/langroid/agent/special/retriever_agent.py +0 -56
  33. langroid-0.32.2/langroid/agent/special/sql/__init__.py +0 -17
  34. langroid-0.32.2/langroid/agent/special/sql/sql_chat_agent.py +0 -654
  35. langroid-0.32.2/langroid/agent/special/sql/utils/__init__.py +0 -21
  36. langroid-0.32.2/langroid/agent/special/sql/utils/description_extractors.py +0 -190
  37. langroid-0.32.2/langroid/agent/special/sql/utils/populate_metadata.py +0 -85
  38. langroid-0.32.2/langroid/agent/special/sql/utils/system_message.py +0 -35
  39. langroid-0.32.2/langroid/agent/special/sql/utils/tools.py +0 -64
  40. langroid-0.32.2/langroid/agent/special/table_chat_agent.py +0 -263
  41. langroid-0.32.2/langroid/agent/task.py +0 -2095
  42. langroid-0.32.2/langroid/agent/tool_message.py +0 -393
  43. langroid-0.32.2/langroid/agent/tools/__init__.py +0 -38
  44. langroid-0.32.2/langroid/agent/tools/duckduckgo_search_tool.py +0 -50
  45. langroid-0.32.2/langroid/agent/tools/file_tools.py +0 -234
  46. langroid-0.32.2/langroid/agent/tools/google_search_tool.py +0 -39
  47. langroid-0.32.2/langroid/agent/tools/metaphor_search_tool.py +0 -67
  48. langroid-0.32.2/langroid/agent/tools/orchestration.py +0 -303
  49. langroid-0.32.2/langroid/agent/tools/recipient_tool.py +0 -235
  50. langroid-0.32.2/langroid/agent/tools/retrieval_tool.py +0 -32
  51. langroid-0.32.2/langroid/agent/tools/rewind_tool.py +0 -137
  52. langroid-0.32.2/langroid/agent/tools/segment_extract_tool.py +0 -41
  53. langroid-0.32.2/langroid/agent/xml_tool_message.py +0 -382
  54. langroid-0.32.2/langroid/cachedb/__init__.py +0 -17
  55. langroid-0.32.2/langroid/cachedb/base.py +0 -58
  56. langroid-0.32.2/langroid/cachedb/momento_cachedb.py +0 -108
  57. langroid-0.32.2/langroid/cachedb/redis_cachedb.py +0 -153
  58. langroid-0.32.2/langroid/embedding_models/__init__.py +0 -39
  59. langroid-0.32.2/langroid/embedding_models/base.py +0 -74
  60. langroid-0.32.2/langroid/embedding_models/models.py +0 -461
  61. langroid-0.32.2/langroid/embedding_models/protoc/__init__.py +0 -0
  62. langroid-0.32.2/langroid/embedding_models/protoc/embeddings.proto +0 -19
  63. langroid-0.32.2/langroid/embedding_models/protoc/embeddings_pb2.py +0 -33
  64. langroid-0.32.2/langroid/embedding_models/protoc/embeddings_pb2.pyi +0 -50
  65. langroid-0.32.2/langroid/embedding_models/protoc/embeddings_pb2_grpc.py +0 -79
  66. langroid-0.32.2/langroid/embedding_models/remote_embeds.py +0 -153
  67. langroid-0.32.2/langroid/exceptions.py +0 -65
  68. langroid-0.32.2/langroid/language_models/__init__.py +0 -53
  69. langroid-0.32.2/langroid/language_models/azure_openai.py +0 -153
  70. langroid-0.32.2/langroid/language_models/base.py +0 -678
  71. langroid-0.32.2/langroid/language_models/config.py +0 -18
  72. langroid-0.32.2/langroid/language_models/mock_lm.py +0 -124
  73. langroid-0.32.2/langroid/language_models/openai_gpt.py +0 -1964
  74. langroid-0.32.2/langroid/language_models/prompt_formatter/__init__.py +0 -16
  75. langroid-0.32.2/langroid/language_models/prompt_formatter/base.py +0 -40
  76. langroid-0.32.2/langroid/language_models/prompt_formatter/hf_formatter.py +0 -132
  77. langroid-0.32.2/langroid/language_models/prompt_formatter/llama2_formatter.py +0 -75
  78. langroid-0.32.2/langroid/language_models/utils.py +0 -151
  79. langroid-0.32.2/langroid/mytypes.py +0 -84
  80. langroid-0.32.2/langroid/parsing/__init__.py +0 -52
  81. langroid-0.32.2/langroid/parsing/agent_chats.py +0 -38
  82. langroid-0.32.2/langroid/parsing/code_parser.py +0 -121
  83. langroid-0.32.2/langroid/parsing/document_parser.py +0 -718
  84. langroid-0.32.2/langroid/parsing/para_sentence_split.py +0 -62
  85. langroid-0.32.2/langroid/parsing/parse_json.py +0 -155
  86. langroid-0.32.2/langroid/parsing/parser.py +0 -313
  87. langroid-0.32.2/langroid/parsing/repo_loader.py +0 -790
  88. langroid-0.32.2/langroid/parsing/routing.py +0 -36
  89. langroid-0.32.2/langroid/parsing/search.py +0 -275
  90. langroid-0.32.2/langroid/parsing/spider.py +0 -102
  91. langroid-0.32.2/langroid/parsing/table_loader.py +0 -94
  92. langroid-0.32.2/langroid/parsing/url_loader.py +0 -111
  93. langroid-0.32.2/langroid/parsing/urls.py +0 -273
  94. langroid-0.32.2/langroid/parsing/utils.py +0 -373
  95. langroid-0.32.2/langroid/parsing/web_search.py +0 -155
  96. langroid-0.32.2/langroid/prompts/__init__.py +0 -9
  97. langroid-0.32.2/langroid/prompts/dialog.py +0 -17
  98. langroid-0.32.2/langroid/prompts/prompts_config.py +0 -5
  99. langroid-0.32.2/langroid/prompts/templates.py +0 -141
  100. langroid-0.32.2/langroid/pydantic_v1/__init__.py +0 -10
  101. langroid-0.32.2/langroid/pydantic_v1/main.py +0 -4
  102. langroid-0.32.2/langroid/utils/__init__.py +0 -19
  103. langroid-0.32.2/langroid/utils/algorithms/__init__.py +0 -3
  104. langroid-0.32.2/langroid/utils/algorithms/graph.py +0 -103
  105. langroid-0.32.2/langroid/utils/configuration.py +0 -98
  106. langroid-0.32.2/langroid/utils/constants.py +0 -30
  107. langroid-0.32.2/langroid/utils/git_utils.py +0 -252
  108. langroid-0.32.2/langroid/utils/globals.py +0 -49
  109. langroid-0.32.2/langroid/utils/logging.py +0 -135
  110. langroid-0.32.2/langroid/utils/object_registry.py +0 -66
  111. langroid-0.32.2/langroid/utils/output/__init__.py +0 -20
  112. langroid-0.32.2/langroid/utils/output/citations.py +0 -41
  113. langroid-0.32.2/langroid/utils/output/printing.py +0 -99
  114. langroid-0.32.2/langroid/utils/output/status.py +0 -40
  115. langroid-0.32.2/langroid/utils/pandas_utils.py +0 -30
  116. langroid-0.32.2/langroid/utils/pydantic_utils.py +0 -602
  117. langroid-0.32.2/langroid/utils/system.py +0 -286
  118. langroid-0.32.2/langroid/utils/types.py +0 -93
  119. langroid-0.32.2/langroid/vector_store/__init__.py +0 -50
  120. langroid-0.32.2/langroid/vector_store/base.py +0 -357
  121. langroid-0.32.2/langroid/vector_store/chromadb.py +0 -214
  122. langroid-0.32.2/langroid/vector_store/lancedb.py +0 -401
  123. langroid-0.32.2/langroid/vector_store/meilisearch.py +0 -299
  124. langroid-0.32.2/langroid/vector_store/momento.py +0 -278
  125. langroid-0.32.2/langroid/vector_store/qdrantdb.py +0 -468
  126. langroid-0.32.2/pyproject.toml +0 -251
  127. {langroid-0.32.2 → langroid-0.33.3}/LICENSE +0 -0
  128. {langroid-0.32.2 → langroid-0.33.3}/langroid/py.typed +0 -0
@@ -1,115 +1,152 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langroid
3
- Version: 0.32.2
3
+ Version: 0.33.3
4
4
  Summary: Harness LLMs with Multi-Agent Programming
5
+ Author-Email: Prasad Chalasani <pchalasani@gmail.com>
5
6
  License: MIT
6
- Author: Prasad Chalasani
7
- Author-email: pchalasani@gmail.com
8
- Requires-Python: >=3.10,<3.13
9
- Classifier: License :: OSI Approved :: MIT License
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Provides-Extra: all
15
- Provides-Extra: arango
16
- Provides-Extra: chainlit
17
- Provides-Extra: chromadb
18
- Provides-Extra: db
7
+ Requires-Python: <3.13,>=3.10
8
+ Requires-Dist: adb-cloud-connector<2.0.0,>=1.0.2
9
+ Requires-Dist: aiohttp<4.0.0,>=3.9.1
10
+ Requires-Dist: async-generator<2.0,>=1.10
11
+ Requires-Dist: bs4<1.0.0,>=0.0.1
12
+ Requires-Dist: cerebras-cloud-sdk<2.0.0,>=1.1.0
13
+ Requires-Dist: colorlog<7.0.0,>=6.7.0
14
+ Requires-Dist: docstring-parser<1.0,>=0.16
15
+ Requires-Dist: duckduckgo-search<7.0.0,>=6.0.0
16
+ Requires-Dist: faker<19.0.0,>=18.9.0
17
+ Requires-Dist: fakeredis<3.0.0,>=2.12.1
18
+ Requires-Dist: fire<1.0.0,>=0.5.0
19
+ Requires-Dist: gitpython<4.0.0,>=3.1.43
20
+ Requires-Dist: google-api-python-client<3.0.0,>=2.95.0
21
+ Requires-Dist: google-generativeai<1.0.0,>=0.5.2
22
+ Requires-Dist: groq<1.0.0,>=0.13.0
23
+ Requires-Dist: grpcio<2.0.0,>=1.62.1
24
+ Requires-Dist: halo<1.0.0,>=0.0.31
25
+ Requires-Dist: jinja2<4.0.0,>=3.1.2
26
+ Requires-Dist: json-repair<1.0.0,>=0.29.9
27
+ Requires-Dist: lxml<5.0.0,>=4.9.3
28
+ Requires-Dist: nest-asyncio<2.0.0,>=1.6.0
29
+ Requires-Dist: nltk<4.0.0,>=3.8.2
30
+ Requires-Dist: onnxruntime<2.0.0,>=1.16.1
31
+ Requires-Dist: openai<2.0.0,>=1.45.0
32
+ Requires-Dist: pandas<3.0.0,>=2.0.3
33
+ Requires-Dist: prettytable<4.0.0,>=3.8.0
34
+ Requires-Dist: pydantic<2.10.2,>=1
35
+ Requires-Dist: pygithub<2.0.0,>=1.58.1
36
+ Requires-Dist: pygments<3.0.0,>=2.15.1
37
+ Requires-Dist: pyparsing<4.0.0,>=3.0.9
38
+ Requires-Dist: pytest-rerunfailures<16.0,>=15.0
39
+ Requires-Dist: python-dotenv<2.0.0,>=1.0.0
40
+ Requires-Dist: python-magic<1.0.0,>=0.4.27
41
+ Requires-Dist: pyyaml<7.0.0,>=6.0.1
42
+ Requires-Dist: qdrant-client<2.0.0,>=1.8.0
43
+ Requires-Dist: rank-bm25<1.0.0,>=0.2.2
44
+ Requires-Dist: redis<6.0.0,>=5.0.1
45
+ Requires-Dist: requests<3.0.0,>=2.31.0
46
+ Requires-Dist: requests-oauthlib<2.0.0,>=1.3.1
47
+ Requires-Dist: rich<14.0.0,>=13.3.4
48
+ Requires-Dist: thefuzz<1.0.0,>=0.20.0
49
+ Requires-Dist: tiktoken<1.0.0,>=0.7.0
50
+ Requires-Dist: trafilatura<2.0.0,>=1.5.0
51
+ Requires-Dist: typer<1.0.0,>=0.9.0
52
+ Requires-Dist: wget<4.0,>=3.2
19
53
  Provides-Extra: doc-chat
20
- Provides-Extra: docx
21
- Provides-Extra: fastembed
22
- Provides-Extra: hf-embeddings
54
+ Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == "doc-chat"
55
+ Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == "doc-chat"
56
+ Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == "doc-chat"
57
+ Requires-Dist: pypdf>=5.1.0; extra == "doc-chat"
58
+ Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == "doc-chat"
59
+ Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == "doc-chat"
60
+ Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == "doc-chat"
23
61
  Provides-Extra: hf-transformers
62
+ Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == "hf-transformers"
63
+ Requires-Dist: torch<3.0.0,>=2.0.0; extra == "hf-transformers"
64
+ Requires-Dist: transformers<5.0.0,>=4.40.1; extra == "hf-transformers"
65
+ Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == "hf-transformers"
66
+ Provides-Extra: vecdbs
67
+ Requires-Dist: lancedb<0.9.0,>=0.8.2; extra == "vecdbs"
68
+ Requires-Dist: tantivy<0.22.0,>=0.21.0; extra == "vecdbs"
69
+ Requires-Dist: pyarrow<16.0.0,>=15.0.0; extra == "vecdbs"
70
+ Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == "vecdbs"
71
+ Provides-Extra: db
72
+ Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == "db"
73
+ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == "db"
74
+ Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == "db"
75
+ Provides-Extra: all
76
+ Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == "all"
77
+ Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == "all"
78
+ Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == "all"
79
+ Requires-Dist: pypdf>=5.1.0; extra == "all"
80
+ Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == "all"
81
+ Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == "all"
82
+ Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == "all"
83
+ Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == "all"
84
+ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == "all"
85
+ Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == "all"
86
+ Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == "all"
87
+ Requires-Dist: torch<3.0.0,>=2.0.0; extra == "all"
88
+ Requires-Dist: transformers<5.0.0,>=4.40.1; extra == "all"
89
+ Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == "all"
90
+ Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == "all"
91
+ Requires-Dist: metaphor-python<0.2.0,>=0.1.23; extra == "all"
92
+ Requires-Dist: neo4j<6.0.0,>=5.14.1; extra == "all"
93
+ Requires-Dist: python-arango<9.0.0,>=8.1.2; extra == "all"
94
+ Requires-Dist: arango-datasets<2.0.0,>=1.2.2; extra == "all"
95
+ Requires-Dist: litellm<2.0.0,>=1.30.1; extra == "all"
96
+ Requires-Dist: chainlit<2.0.0,>=1.3.2; extra == "all"
97
+ Requires-Dist: python-socketio<6.0.0,>=5.11.0; extra == "all"
98
+ Requires-Dist: fastembed<0.4.0,>=0.3.1; extra == "all"
24
99
  Provides-Extra: lancedb
25
- Provides-Extra: litellm
26
- Provides-Extra: meilisearch
27
- Provides-Extra: metaphor
28
- Provides-Extra: mkdocs
29
- Provides-Extra: momento
30
- Provides-Extra: mysql
31
- Provides-Extra: neo4j
100
+ Requires-Dist: lancedb<0.9.0,>=0.8.2; extra == "lancedb"
101
+ Requires-Dist: tantivy<0.22.0,>=0.21.0; extra == "lancedb"
102
+ Requires-Dist: pyarrow<16.0.0,>=15.0.0; extra == "lancedb"
32
103
  Provides-Extra: pdf-parsers
33
- Provides-Extra: postgres
104
+ Requires-Dist: pdfplumber<0.11.0,>=0.10.2; extra == "pdf-parsers"
105
+ Requires-Dist: pypdf>=5.1.0; extra == "pdf-parsers"
106
+ Requires-Dist: pymupdf<2.0.0,>=1.23.3; extra == "pdf-parsers"
107
+ Requires-Dist: pdf2image<2.0.0,>=1.17.0; extra == "pdf-parsers"
108
+ Requires-Dist: pytesseract<0.4.0,>=0.3.10; extra == "pdf-parsers"
109
+ Provides-Extra: docx
110
+ Requires-Dist: python-docx<2.0.0,>=1.1.0; extra == "docx"
34
111
  Provides-Extra: scrapy
35
- Provides-Extra: sql
112
+ Requires-Dist: scrapy<3.0.0,>=2.11.0; extra == "scrapy"
113
+ Provides-Extra: hf-embeddings
114
+ Requires-Dist: sentence-transformers<3.0.0,>=2.2.2; extra == "hf-embeddings"
115
+ Requires-Dist: torch<3.0.0,>=2.0.0; extra == "hf-embeddings"
36
116
  Provides-Extra: transformers
117
+ Requires-Dist: transformers<5.0.0,>=4.40.1; extra == "transformers"
118
+ Requires-Dist: huggingface-hub<0.22.0,>=0.21.2; extra == "transformers"
119
+ Requires-Dist: torch<3.0.0,>=2.0.0; extra == "transformers"
37
120
  Provides-Extra: unstructured
38
- Provides-Extra: vecdbs
39
- Requires-Dist: adb-cloud-connector (>=1.0.2,<2.0.0)
40
- Requires-Dist: aiohttp (>=3.9.1,<4.0.0)
41
- Requires-Dist: arango-datasets (>=1.2.2,<2.0.0) ; extra == "all" or extra == "arango"
42
- Requires-Dist: async-generator (>=1.10,<2.0)
43
- Requires-Dist: bs4 (>=0.0.1,<0.0.2)
44
- Requires-Dist: cerebras-cloud-sdk (>=1.1.0,<2.0.0)
45
- Requires-Dist: chainlit (>=1.3.2,<2.0.0) ; extra == "all" or extra == "chainlit"
46
- Requires-Dist: chromadb (>=0.4.21,<=0.4.23) ; extra == "vecdbs" or extra == "all" or extra == "chromadb"
47
- Requires-Dist: colorlog (>=6.7.0,<7.0.0)
48
- Requires-Dist: docstring-parser (>=0.16,<0.17)
49
- Requires-Dist: duckduckgo-search (>=6.0.0,<7.0.0)
50
- Requires-Dist: faker (>=18.9.0,<19.0.0)
51
- Requires-Dist: fakeredis (>=2.12.1,<3.0.0)
52
- Requires-Dist: fastembed (>=0.3.1,<0.4.0) ; extra == "all" or extra == "fastembed"
53
- Requires-Dist: fire (>=0.5.0,<0.6.0)
54
- Requires-Dist: gitpython (>=3.1.43,<4.0.0)
55
- Requires-Dist: google-api-python-client (>=2.95.0,<3.0.0)
56
- Requires-Dist: google-generativeai (>=0.5.2,<0.6.0)
57
- Requires-Dist: groq (>=0.13.0,<0.14.0)
58
- Requires-Dist: grpcio (>=1.62.1,<2.0.0)
59
- Requires-Dist: halo (>=0.0.31,<0.0.32)
60
- Requires-Dist: huggingface-hub (>=0.21.2,<0.22.0) ; extra == "hf-transformers" or extra == "all" or extra == "transformers"
61
- Requires-Dist: jinja2 (>=3.1.2,<4.0.0)
62
- Requires-Dist: json-repair (>=0.29.9,<0.30.0)
63
- Requires-Dist: lancedb (>=0.8.2,<0.9.0) ; extra == "vecdbs" or extra == "lancedb"
64
- Requires-Dist: litellm (>=1.30.1,<2.0.0) ; extra == "all" or extra == "litellm"
65
- Requires-Dist: lxml (>=4.9.3,<5.0.0)
66
- Requires-Dist: meilisearch-python-sdk (>=2.2.3,<3.0.0) ; extra == "meilisearch"
67
- Requires-Dist: metaphor-python (>=0.1.23,<0.2.0) ; extra == "all" or extra == "metaphor"
68
- Requires-Dist: momento (>=1.10.2,<1.21) ; extra == "momento"
69
- Requires-Dist: neo4j (>=5.14.1,<6.0.0) ; extra == "all" or extra == "neo4j"
70
- Requires-Dist: nest-asyncio (>=1.6.0,<2.0.0)
71
- Requires-Dist: nltk (>=3.8.2,<4.0.0)
72
- Requires-Dist: onnxruntime (>=1.16.1,<2.0.0)
73
- Requires-Dist: openai (>=1.45.0,<2.0.0)
74
- Requires-Dist: pandas (>=2.0.3,<3.0.0)
75
- Requires-Dist: pdf2image (>=1.17.0,<2.0.0) ; extra == "doc-chat" or extra == "all" or extra == "pdf-parsers"
76
- Requires-Dist: pdfplumber (>=0.10.2,<0.11.0) ; extra == "doc-chat" or extra == "all" or extra == "pdf-parsers"
77
- Requires-Dist: prettytable (>=3.8.0,<4.0.0)
78
- Requires-Dist: psycopg2 (>=2.9.7,<3.0.0) ; extra == "db" or extra == "all" or extra == "postgres" or extra == "sql"
79
- Requires-Dist: pyarrow (==15.0.0) ; extra == "vecdbs" or extra == "lancedb"
80
- Requires-Dist: pydantic (>=1,<2.10.2)
81
- Requires-Dist: pygithub (>=1.58.1,<2.0.0)
82
- Requires-Dist: pygments (>=2.15.1,<3.0.0)
83
- Requires-Dist: pymupdf (>=1.23.3,<2.0.0) ; extra == "doc-chat" or extra == "all" or extra == "pdf-parsers"
84
- Requires-Dist: pymysql (>=1.1.0,<2.0.0) ; extra == "db" or extra == "all" or extra == "mysql" or extra == "sql"
85
- Requires-Dist: pyparsing (>=3.0.9,<4.0.0)
86
- Requires-Dist: pypdf (>=5.1.0) ; extra == "doc-chat" or extra == "all" or extra == "pdf-parsers"
87
- Requires-Dist: pytesseract (>=0.3.10,<0.4.0) ; extra == "doc-chat" or extra == "all" or extra == "pdf-parsers"
88
- Requires-Dist: pytest-rerunfailures (>=15.0,<16.0)
89
- Requires-Dist: python-arango (>=8.1.2,<9.0.0) ; extra == "all" or extra == "arango"
90
- Requires-Dist: python-docx (>=1.1.0,<2.0.0) ; extra == "doc-chat" or extra == "all" or extra == "docx"
91
- Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
92
- Requires-Dist: python-magic (>=0.4.27,<0.5.0)
93
- Requires-Dist: python-socketio (>=5.11.0,<6.0.0) ; extra == "all" or extra == "chainlit"
94
- Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
95
- Requires-Dist: qdrant-client (>=1.8.0,<2.0.0)
96
- Requires-Dist: rank-bm25 (>=0.2.2,<0.3.0)
97
- Requires-Dist: redis (>=5.0.1,<6.0.0)
98
- Requires-Dist: requests (>=2.31.0,<3.0.0)
99
- Requires-Dist: requests-oauthlib (>=1.3.1,<2.0.0)
100
- Requires-Dist: rich (>=13.3.4,<14.0.0)
101
- Requires-Dist: scrapy (>=2.11.0,<3.0.0) ; extra == "scrapy"
102
- Requires-Dist: sentence-transformers (>=2.2.2,<3.0.0) ; extra == "hf-transformers" or extra == "all" or extra == "hf-embeddings"
103
- Requires-Dist: sqlalchemy (>=2.0.19,<3.0.0) ; extra == "db" or extra == "all" or extra == "sql"
104
- Requires-Dist: tantivy (>=0.21.0,<0.22.0) ; extra == "vecdbs" or extra == "lancedb"
105
- Requires-Dist: thefuzz (>=0.20.0,<0.21.0)
106
- Requires-Dist: tiktoken (>=0.7.0,<0.8.0)
107
- Requires-Dist: torch (>=2.0.0,<3.0.0) ; extra == "hf-transformers" or extra == "all" or extra == "hf-embeddings" or extra == "transformers"
108
- Requires-Dist: trafilatura (>=1.5.0,<2.0.0)
109
- Requires-Dist: transformers (>=4.40.1,<5.0.0) ; extra == "hf-transformers" or extra == "all" or extra == "transformers"
110
- Requires-Dist: typer (>=0.9.0,<0.10.0)
111
- Requires-Dist: unstructured[docx,pdf,pptx] (>=0.10.16,<0.10.18) ; extra == "doc-chat" or extra == "all" or extra == "unstructured"
112
- Requires-Dist: wget (>=3.2,<4.0)
121
+ Requires-Dist: unstructured[docx,pdf,pptx]<0.10.18,>=0.10.16; extra == "unstructured"
122
+ Provides-Extra: postgres
123
+ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == "postgres"
124
+ Provides-Extra: mysql
125
+ Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == "mysql"
126
+ Provides-Extra: sql
127
+ Requires-Dist: sqlalchemy<3.0.0,>=2.0.19; extra == "sql"
128
+ Requires-Dist: pymysql<2.0.0,>=1.1.0; extra == "sql"
129
+ Requires-Dist: psycopg2<3.0.0,>=2.9.7; extra == "sql"
130
+ Provides-Extra: litellm
131
+ Requires-Dist: litellm<2.0.0,>=1.30.1; extra == "litellm"
132
+ Provides-Extra: neo4j
133
+ Requires-Dist: neo4j<6.0.0,>=5.14.1; extra == "neo4j"
134
+ Provides-Extra: arango
135
+ Requires-Dist: python-arango<9.0.0,>=8.1.2; extra == "arango"
136
+ Requires-Dist: arango-datasets<2.0.0,>=1.2.2; extra == "arango"
137
+ Provides-Extra: metaphor
138
+ Requires-Dist: metaphor-python<0.2.0,>=0.1.23; extra == "metaphor"
139
+ Provides-Extra: chainlit
140
+ Requires-Dist: chainlit<2.0.0,>=1.3.2; extra == "chainlit"
141
+ Requires-Dist: python-socketio<6.0.0,>=5.11.0; extra == "chainlit"
142
+ Provides-Extra: chromadb
143
+ Requires-Dist: chromadb<=0.4.23,>=0.4.21; extra == "chromadb"
144
+ Provides-Extra: meilisearch
145
+ Requires-Dist: meilisearch-python-sdk<3.0.0,>=2.2.3; extra == "meilisearch"
146
+ Provides-Extra: momento
147
+ Requires-Dist: momento<1.21.0,>=1.10.2; extra == "momento"
148
+ Provides-Extra: fastembed
149
+ Requires-Dist: fastembed<0.4.0,>=0.3.1; extra == "fastembed"
113
150
  Description-Content-Type: text/markdown
114
151
 
115
152
  <div align="center">
@@ -568,7 +605,9 @@ with a postgres db, you will need to:
568
605
  - `sudo apt-get install libpq-dev` on Ubuntu,
569
606
  - `brew install postgresql` on Mac, etc.
570
607
  - Install langroid with the postgres extra, e.g. `pip install langroid[postgres]`
571
- or `poetry add langroid[postgres]` or `poetry install -E postgres`.
608
+ or `poetry add "langroid[postgres]"` or `poetry install -E postgres`,
609
+ (or the corresponding `uv` versions, e.g. `uv add "langroid[postgres]"`
610
+ or `uv pip install langroid[postgres]`).
572
611
  If this gives you an error, try `pip install psycopg2-binary` in your virtualenv.
573
612
  </details>
574
613
 
@@ -722,12 +761,16 @@ All of these can be run in a Colab notebook:
722
761
  [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/langroid/langroid/blob/main/examples/Langroid_quick_start.ipynb)
723
762
 
724
763
  <details>
725
- <summary> <b> Direct interaction with OpenAI LLM </b> </summary>
764
+ <summary> <b> Direct interaction with LLM </b> </summary>
726
765
 
727
766
  ```python
728
767
  import langroid.language_models as lm
729
768
 
730
- mdl = lm.OpenAIGPT()
769
+ mdl = lm.OpenAIGPT(
770
+ lm.OpenAIGPTConfig(
771
+ chat_model=lm.OpenAIChatModel.GPT4, # or, e.g. "ollama/qwen2.5"
772
+ ),
773
+ )
731
774
 
732
775
  messages = [
733
776
  lm.LLMMessage(content="You are a helpful assistant", role=lm.Role.SYSTEM),
@@ -737,6 +780,8 @@ messages = [
737
780
  response = mdl.chat(messages, max_tokens=200)
738
781
  print(response.message)
739
782
  ```
783
+ See the guides to use
784
+ ([local/open LLMs](https://langroid.github.io/langroid/tutorials/local-llm-setup/) or [remote/commercial LLMs](https://langroid.github.io/langroid/tutorials/non-openai-llms/)).
740
785
  </details>
741
786
 
742
787
  <details>
@@ -751,24 +796,6 @@ cfg = lm.OpenAIGPTConfig(
751
796
  mdl = lm.OpenAIGPT(cfg)
752
797
  # now interact with it as above, or create an Agent + Task as shown below.
753
798
  ```
754
-
755
- If the model is [supported by `liteLLM`](https://docs.litellm.ai/docs/providers),
756
- then no need to launch the proxy server.
757
- Just set the `chat_model` param above to `litellm/[provider]/[model]`, e.g.
758
- `litellm/anthropic/claude-instant-1` and use the config object as above.
759
- Note that to use `litellm` you need to install langroid with the `litellm` extra:
760
- `poetry install -E litellm` or `pip install langroid[litellm]`.
761
- For remote models, you will typically need to set API Keys etc as environment variables.
762
- You can set those based on the LiteLLM docs.
763
- If any required environment variables are missing, Langroid gives a helpful error
764
- message indicating which ones are needed.
765
- Note that to use `langroid` with `litellm` you need to install the `litellm`
766
- extra, i.e. either `pip install langroid[litellm]` in your virtual env,
767
- or if you are developing within the `langroid` repo,
768
- `poetry install -E litellm`.
769
- ```bash
770
- pip install langroid[litellm]
771
- ```
772
799
  </details>
773
800
 
774
801
  <details>
@@ -1082,4 +1109,3 @@ Your support will help build Langroid's momentum and community.
1082
1109
 
1083
1110
 
1084
1111
 
1085
-
@@ -454,7 +454,9 @@ with a postgres db, you will need to:
454
454
  - `sudo apt-get install libpq-dev` on Ubuntu,
455
455
  - `brew install postgresql` on Mac, etc.
456
456
  - Install langroid with the postgres extra, e.g. `pip install langroid[postgres]`
457
- or `poetry add langroid[postgres]` or `poetry install -E postgres`.
457
+ or `poetry add "langroid[postgres]"` or `poetry install -E postgres`,
458
+ (or the corresponding `uv` versions, e.g. `uv add "langroid[postgres]"`
459
+ or `uv pip install langroid[postgres]`).
458
460
  If this gives you an error, try `pip install psycopg2-binary` in your virtualenv.
459
461
  </details>
460
462
 
@@ -608,12 +610,16 @@ All of these can be run in a Colab notebook:
608
610
  [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/langroid/langroid/blob/main/examples/Langroid_quick_start.ipynb)
609
611
 
610
612
  <details>
611
- <summary> <b> Direct interaction with OpenAI LLM </b> </summary>
613
+ <summary> <b> Direct interaction with LLM </b> </summary>
612
614
 
613
615
  ```python
614
616
  import langroid.language_models as lm
615
617
 
616
- mdl = lm.OpenAIGPT()
618
+ mdl = lm.OpenAIGPT(
619
+ lm.OpenAIGPTConfig(
620
+ chat_model=lm.OpenAIChatModel.GPT4, # or, e.g. "ollama/qwen2.5"
621
+ ),
622
+ )
617
623
 
618
624
  messages = [
619
625
  lm.LLMMessage(content="You are a helpful assistant", role=lm.Role.SYSTEM),
@@ -623,6 +629,8 @@ messages = [
623
629
  response = mdl.chat(messages, max_tokens=200)
624
630
  print(response.message)
625
631
  ```
632
+ See the guides to use
633
+ ([local/open LLMs](https://langroid.github.io/langroid/tutorials/local-llm-setup/) or [remote/commercial LLMs](https://langroid.github.io/langroid/tutorials/non-openai-llms/)).
626
634
  </details>
627
635
 
628
636
  <details>
@@ -637,24 +645,6 @@ cfg = lm.OpenAIGPTConfig(
637
645
  mdl = lm.OpenAIGPT(cfg)
638
646
  # now interact with it as above, or create an Agent + Task as shown below.
639
647
  ```
640
-
641
- If the model is [supported by `liteLLM`](https://docs.litellm.ai/docs/providers),
642
- then no need to launch the proxy server.
643
- Just set the `chat_model` param above to `litellm/[provider]/[model]`, e.g.
644
- `litellm/anthropic/claude-instant-1` and use the config object as above.
645
- Note that to use `litellm` you need to install langroid with the `litellm` extra:
646
- `poetry install -E litellm` or `pip install langroid[litellm]`.
647
- For remote models, you will typically need to set API Keys etc as environment variables.
648
- You can set those based on the LiteLLM docs.
649
- If any required environment variables are missing, Langroid gives a helpful error
650
- message indicating which ones are needed.
651
- Note that to use `langroid` with `litellm` you need to install the `litellm`
652
- extra, i.e. either `pip install langroid[litellm]` in your virtual env,
653
- or if you are developing within the `langroid` repo,
654
- `poetry install -E litellm`.
655
- ```bash
656
- pip install langroid[litellm]
657
- ```
658
648
  </details>
659
649
 
660
650
  <details>