langroid 0.32.2__py3-none-any.whl → 0.33.4__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.
Files changed (129) hide show
  1. {langroid-0.32.2.dist-info → langroid-0.33.4.dist-info}/METADATA +149 -123
  2. langroid-0.33.4.dist-info/RECORD +7 -0
  3. {langroid-0.32.2.dist-info → langroid-0.33.4.dist-info}/WHEEL +1 -1
  4. langroid-0.33.4.dist-info/entry_points.txt +4 -0
  5. pyproject.toml +317 -212
  6. langroid/__init__.py +0 -106
  7. langroid/agent/__init__.py +0 -41
  8. langroid/agent/base.py +0 -1983
  9. langroid/agent/batch.py +0 -398
  10. langroid/agent/callbacks/__init__.py +0 -0
  11. langroid/agent/callbacks/chainlit.py +0 -598
  12. langroid/agent/chat_agent.py +0 -1899
  13. langroid/agent/chat_document.py +0 -454
  14. langroid/agent/openai_assistant.py +0 -882
  15. langroid/agent/special/__init__.py +0 -59
  16. langroid/agent/special/arangodb/__init__.py +0 -0
  17. langroid/agent/special/arangodb/arangodb_agent.py +0 -656
  18. langroid/agent/special/arangodb/system_messages.py +0 -186
  19. langroid/agent/special/arangodb/tools.py +0 -107
  20. langroid/agent/special/arangodb/utils.py +0 -36
  21. langroid/agent/special/doc_chat_agent.py +0 -1466
  22. langroid/agent/special/lance_doc_chat_agent.py +0 -262
  23. langroid/agent/special/lance_rag/__init__.py +0 -9
  24. langroid/agent/special/lance_rag/critic_agent.py +0 -198
  25. langroid/agent/special/lance_rag/lance_rag_task.py +0 -82
  26. langroid/agent/special/lance_rag/query_planner_agent.py +0 -260
  27. langroid/agent/special/lance_tools.py +0 -61
  28. langroid/agent/special/neo4j/__init__.py +0 -0
  29. langroid/agent/special/neo4j/csv_kg_chat.py +0 -174
  30. langroid/agent/special/neo4j/neo4j_chat_agent.py +0 -433
  31. langroid/agent/special/neo4j/system_messages.py +0 -120
  32. langroid/agent/special/neo4j/tools.py +0 -32
  33. langroid/agent/special/relevance_extractor_agent.py +0 -127
  34. langroid/agent/special/retriever_agent.py +0 -56
  35. langroid/agent/special/sql/__init__.py +0 -17
  36. langroid/agent/special/sql/sql_chat_agent.py +0 -654
  37. langroid/agent/special/sql/utils/__init__.py +0 -21
  38. langroid/agent/special/sql/utils/description_extractors.py +0 -190
  39. langroid/agent/special/sql/utils/populate_metadata.py +0 -85
  40. langroid/agent/special/sql/utils/system_message.py +0 -35
  41. langroid/agent/special/sql/utils/tools.py +0 -64
  42. langroid/agent/special/table_chat_agent.py +0 -263
  43. langroid/agent/task.py +0 -2095
  44. langroid/agent/tool_message.py +0 -393
  45. langroid/agent/tools/__init__.py +0 -38
  46. langroid/agent/tools/duckduckgo_search_tool.py +0 -50
  47. langroid/agent/tools/file_tools.py +0 -234
  48. langroid/agent/tools/google_search_tool.py +0 -39
  49. langroid/agent/tools/metaphor_search_tool.py +0 -67
  50. langroid/agent/tools/orchestration.py +0 -303
  51. langroid/agent/tools/recipient_tool.py +0 -235
  52. langroid/agent/tools/retrieval_tool.py +0 -32
  53. langroid/agent/tools/rewind_tool.py +0 -137
  54. langroid/agent/tools/segment_extract_tool.py +0 -41
  55. langroid/agent/xml_tool_message.py +0 -382
  56. langroid/cachedb/__init__.py +0 -17
  57. langroid/cachedb/base.py +0 -58
  58. langroid/cachedb/momento_cachedb.py +0 -108
  59. langroid/cachedb/redis_cachedb.py +0 -153
  60. langroid/embedding_models/__init__.py +0 -39
  61. langroid/embedding_models/base.py +0 -74
  62. langroid/embedding_models/models.py +0 -461
  63. langroid/embedding_models/protoc/__init__.py +0 -0
  64. langroid/embedding_models/protoc/embeddings.proto +0 -19
  65. langroid/embedding_models/protoc/embeddings_pb2.py +0 -33
  66. langroid/embedding_models/protoc/embeddings_pb2.pyi +0 -50
  67. langroid/embedding_models/protoc/embeddings_pb2_grpc.py +0 -79
  68. langroid/embedding_models/remote_embeds.py +0 -153
  69. langroid/exceptions.py +0 -65
  70. langroid/language_models/__init__.py +0 -53
  71. langroid/language_models/azure_openai.py +0 -153
  72. langroid/language_models/base.py +0 -678
  73. langroid/language_models/config.py +0 -18
  74. langroid/language_models/mock_lm.py +0 -124
  75. langroid/language_models/openai_gpt.py +0 -1964
  76. langroid/language_models/prompt_formatter/__init__.py +0 -16
  77. langroid/language_models/prompt_formatter/base.py +0 -40
  78. langroid/language_models/prompt_formatter/hf_formatter.py +0 -132
  79. langroid/language_models/prompt_formatter/llama2_formatter.py +0 -75
  80. langroid/language_models/utils.py +0 -151
  81. langroid/mytypes.py +0 -84
  82. langroid/parsing/__init__.py +0 -52
  83. langroid/parsing/agent_chats.py +0 -38
  84. langroid/parsing/code_parser.py +0 -121
  85. langroid/parsing/document_parser.py +0 -718
  86. langroid/parsing/para_sentence_split.py +0 -62
  87. langroid/parsing/parse_json.py +0 -155
  88. langroid/parsing/parser.py +0 -313
  89. langroid/parsing/repo_loader.py +0 -790
  90. langroid/parsing/routing.py +0 -36
  91. langroid/parsing/search.py +0 -275
  92. langroid/parsing/spider.py +0 -102
  93. langroid/parsing/table_loader.py +0 -94
  94. langroid/parsing/url_loader.py +0 -111
  95. langroid/parsing/urls.py +0 -273
  96. langroid/parsing/utils.py +0 -373
  97. langroid/parsing/web_search.py +0 -155
  98. langroid/prompts/__init__.py +0 -9
  99. langroid/prompts/dialog.py +0 -17
  100. langroid/prompts/prompts_config.py +0 -5
  101. langroid/prompts/templates.py +0 -141
  102. langroid/pydantic_v1/__init__.py +0 -10
  103. langroid/pydantic_v1/main.py +0 -4
  104. langroid/utils/__init__.py +0 -19
  105. langroid/utils/algorithms/__init__.py +0 -3
  106. langroid/utils/algorithms/graph.py +0 -103
  107. langroid/utils/configuration.py +0 -98
  108. langroid/utils/constants.py +0 -30
  109. langroid/utils/git_utils.py +0 -252
  110. langroid/utils/globals.py +0 -49
  111. langroid/utils/logging.py +0 -135
  112. langroid/utils/object_registry.py +0 -66
  113. langroid/utils/output/__init__.py +0 -20
  114. langroid/utils/output/citations.py +0 -41
  115. langroid/utils/output/printing.py +0 -99
  116. langroid/utils/output/status.py +0 -40
  117. langroid/utils/pandas_utils.py +0 -30
  118. langroid/utils/pydantic_utils.py +0 -602
  119. langroid/utils/system.py +0 -286
  120. langroid/utils/types.py +0 -93
  121. langroid/vector_store/__init__.py +0 -50
  122. langroid/vector_store/base.py +0 -357
  123. langroid/vector_store/chromadb.py +0 -214
  124. langroid/vector_store/lancedb.py +0 -401
  125. langroid/vector_store/meilisearch.py +0 -299
  126. langroid/vector_store/momento.py +0 -278
  127. langroid/vector_store/qdrantdb.py +0 -468
  128. langroid-0.32.2.dist-info/RECORD +0 -128
  129. {langroid-0.32.2.dist-info → langroid-0.33.4.dist-info/licenses}/LICENSE +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.4
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<3.0.0,>=2.0.1; 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<3.0.0,>=2.0.1; 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
-
@@ -0,0 +1,7 @@
1
+ langroid-0.33.4.dist-info/METADATA,sha256=8V6DdBm1IMA7vrl3C58EJWQNSq1hE6lfRAz6B6QhHeA,58993
2
+ langroid-0.33.4.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ langroid-0.33.4.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ langroid-0.33.4.dist-info/licenses/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
5
+ langroid/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ pyproject.toml,sha256=rg2ezA_S0dEoXc647GmTVoWql6m6xRuqo2wkl2LcIVs,7612
7
+ langroid-0.33.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.1
2
+ Generator: pdm-backend (2.4.3)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+
3
+ [gui_scripts]
4
+