ws-bom-robot-app 0.0.92__py3-none-any.whl → 0.0.94__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.
- ws_bom_robot_app/llm/agent_handler.py +3 -1
- ws_bom_robot_app/llm/providers/llm_manager.py +2 -5
- {ws_bom_robot_app-0.0.92.dist-info → ws_bom_robot_app-0.0.94.dist-info}/METADATA +28 -19
- {ws_bom_robot_app-0.0.92.dist-info → ws_bom_robot_app-0.0.94.dist-info}/RECORD +6 -6
- {ws_bom_robot_app-0.0.92.dist-info → ws_bom_robot_app-0.0.94.dist-info}/WHEEL +0 -0
- {ws_bom_robot_app-0.0.92.dist-info → ws_bom_robot_app-0.0.94.dist-info}/top_level.txt +0 -0
|
@@ -83,7 +83,9 @@ class AgentHandler(AsyncCallbackHandler):
|
|
|
83
83
|
# to avoid losing potential marker fragments, output what we can safely process:
|
|
84
84
|
# if the pending text is long, we output most of it except the last few characters.
|
|
85
85
|
if len(self.stream_buffer) > self.stream_cut_last_output_chunk_size:
|
|
86
|
-
safe_cut = self.stream_buffer[:-3]
|
|
86
|
+
safe_cut = self.stream_buffer[:-3]
|
|
87
|
+
if safe_cut.startswith('`'):
|
|
88
|
+
safe_cut = safe_cut[1:]
|
|
87
89
|
await self.queue.put(print_string(safe_cut))
|
|
88
90
|
self.stream_buffer = self.stream_buffer[-3:]
|
|
89
91
|
else:
|
|
@@ -179,7 +179,7 @@ class Google(LlmInterface):
|
|
|
179
179
|
from langchain_google_genai.embeddings import GoogleGenerativeAIEmbeddings
|
|
180
180
|
return GoogleGenerativeAIEmbeddings(
|
|
181
181
|
google_api_key=self.config.api_key or os.getenv("GOOGLE_API_KEY"),
|
|
182
|
-
model="models/
|
|
182
|
+
model="models/gemini-embedding-001")
|
|
183
183
|
|
|
184
184
|
def get_models(self):
|
|
185
185
|
import google.generativeai as genai
|
|
@@ -209,10 +209,7 @@ class GoogleVertex(LlmInterface):
|
|
|
209
209
|
)
|
|
210
210
|
def get_embeddings(self):
|
|
211
211
|
from langchain_google_vertexai.embeddings import VertexAIEmbeddings
|
|
212
|
-
embeddings = VertexAIEmbeddings(model_name="
|
|
213
|
-
#fix gemini-embedding-001 batch size
|
|
214
|
-
#embeddings.instance["max_batch_size"] = 1
|
|
215
|
-
#embeddings.instance["batch_size"] = 1
|
|
212
|
+
embeddings = VertexAIEmbeddings(model_name="gemini-embedding-001")
|
|
216
213
|
return embeddings
|
|
217
214
|
def get_models(self):
|
|
218
215
|
_models = [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ws_bom_robot_app
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.94
|
|
4
4
|
Summary: A FastAPI application serving ws bom/robot/llm platform ai.
|
|
5
5
|
Home-page: https://github.com/websolutespa/bom
|
|
6
6
|
Author: Websolute Spa
|
|
@@ -13,30 +13,31 @@ Description-Content-Type: text/markdown
|
|
|
13
13
|
Requires-Dist: standardwebhooks==1.0.0
|
|
14
14
|
Requires-Dist: apscheduler==3.11.0
|
|
15
15
|
Requires-Dist: aiofiles==24.1.0
|
|
16
|
-
Requires-Dist: pydantic==2.11.
|
|
17
|
-
Requires-Dist: pydantic-settings==2.
|
|
18
|
-
Requires-Dist: fastapi[standard]==0.
|
|
16
|
+
Requires-Dist: pydantic==2.11.9
|
|
17
|
+
Requires-Dist: pydantic-settings==2.11.0
|
|
18
|
+
Requires-Dist: fastapi[standard]==0.118.0
|
|
19
19
|
Requires-Dist: chevron==0.14.0
|
|
20
|
+
Requires-Dist: msoffcrypto-tool==5.4.2
|
|
20
21
|
Requires-Dist: langchain==0.3.27
|
|
21
|
-
Requires-Dist: langchain-community==0.3.
|
|
22
|
+
Requires-Dist: langchain-community==0.3.30
|
|
22
23
|
Requires-Dist: langchain-core==0.3.76
|
|
23
|
-
Requires-Dist: langchain-openai==0.3.
|
|
24
|
-
Requires-Dist: langchain-anthropic==0.3.
|
|
25
|
-
Requires-Dist: langchain-ibm==0.3.
|
|
26
|
-
Requires-Dist: langchain-google-genai==2.1.
|
|
24
|
+
Requires-Dist: langchain-openai==0.3.33
|
|
25
|
+
Requires-Dist: langchain-anthropic==0.3.21
|
|
26
|
+
Requires-Dist: langchain-ibm==0.3.18
|
|
27
|
+
Requires-Dist: langchain-google-genai==2.1.12
|
|
27
28
|
Requires-Dist: langchain-google-vertexai==2.1.2
|
|
28
|
-
Requires-Dist: langchain-groq==0.3.
|
|
29
|
-
Requires-Dist: langchain-ollama==0.3.
|
|
29
|
+
Requires-Dist: langchain-groq==0.3.8
|
|
30
|
+
Requires-Dist: langchain-ollama==0.3.8
|
|
30
31
|
Requires-Dist: openevals==0.1.0
|
|
31
32
|
Requires-Dist: faiss-cpu==1.12.0
|
|
32
|
-
Requires-Dist: chromadb==1.0
|
|
33
|
-
Requires-Dist: langchain-chroma==0.2.
|
|
34
|
-
Requires-Dist: langchain-qdrant==0.2.
|
|
33
|
+
Requires-Dist: chromadb==1.1.0
|
|
34
|
+
Requires-Dist: langchain-chroma==0.2.6
|
|
35
|
+
Requires-Dist: langchain-qdrant==0.2.1
|
|
35
36
|
Requires-Dist: qdrant-client[fastembed]==1.15.1
|
|
36
|
-
Requires-Dist: lark==1.
|
|
37
|
-
Requires-Dist: unstructured==0.18.
|
|
37
|
+
Requires-Dist: lark==1.3.0
|
|
38
|
+
Requires-Dist: unstructured==0.18.15
|
|
38
39
|
Requires-Dist: unstructured[image]
|
|
39
|
-
Requires-Dist: unstructured-ingest==1.2.
|
|
40
|
+
Requires-Dist: unstructured-ingest==1.2.18
|
|
40
41
|
Requires-Dist: unstructured-ingest[azure]
|
|
41
42
|
Requires-Dist: unstructured-ingest[confluence]
|
|
42
43
|
Requires-Dist: unstructured-ingest[dropbox]
|
|
@@ -50,8 +51,8 @@ Requires-Dist: unstructured-ingest[sharepoint]
|
|
|
50
51
|
Requires-Dist: unstructured-ingest[slack]
|
|
51
52
|
Requires-Dist: html5lib==1.1
|
|
52
53
|
Requires-Dist: markdownify==1.2.0
|
|
53
|
-
Requires-Dist: duckduckgo-search==8.
|
|
54
|
-
Requires-Dist: langchain-google-community==2.0.
|
|
54
|
+
Requires-Dist: duckduckgo-search==8.1.1
|
|
55
|
+
Requires-Dist: langchain-google-community==2.0.10
|
|
55
56
|
Requires-Dist: trafilatura==2.0.0
|
|
56
57
|
Dynamic: author
|
|
57
58
|
Dynamic: author-email
|
|
@@ -253,6 +254,14 @@ Build/distribute pkg from `websolutespa` bom [[Github](https://github.com/websol
|
|
|
253
254
|
|
|
254
255
|
### 🔖 requirements
|
|
255
256
|
|
|
257
|
+
- project requirements update
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
py requirement_update.py
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
- build tools
|
|
264
|
+
|
|
256
265
|
```bash
|
|
257
266
|
py -m pip install --upgrade setuptools build twine streamlit
|
|
258
267
|
```
|
|
@@ -9,7 +9,7 @@ ws_bom_robot_app/util.py,sha256=t1VS6JQNOZe6aenBmjPLxJ_A3ncm7WqTZE8_gR85sQo,5022
|
|
|
9
9
|
ws_bom_robot_app/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
ws_bom_robot_app/llm/agent_context.py,sha256=uatHJ8wcRly6h0S762BgfzDMpmcwCHwNzwo37aWjeE0,1305
|
|
11
11
|
ws_bom_robot_app/llm/agent_description.py,sha256=5IP0qFSJvaE3zjGS7f0W1DuiegP0RHXRMBoDC5pCofA,4779
|
|
12
|
-
ws_bom_robot_app/llm/agent_handler.py,sha256
|
|
12
|
+
ws_bom_robot_app/llm/agent_handler.py,sha256=HAg3qmj-QY_k7P-GfAKna1tKdmZaTHrZbNWJc0eol3A,7858
|
|
13
13
|
ws_bom_robot_app/llm/agent_lcel.py,sha256=QRgGkdVXCwDXWjJj8R8qaYeLqUfpaYjtRnl3GrZCwVM,2530
|
|
14
14
|
ws_bom_robot_app/llm/api.py,sha256=jMoiKiD5HNxGu6gTb5_qZ5UU8d2uJ7UVrdLseDStI6o,7634
|
|
15
15
|
ws_bom_robot_app/llm/defaut_prompt.py,sha256=D9dn8yPveu0bVwGM1wQWLYftmBs5O76o0R_caLLll8w,1121
|
|
@@ -24,7 +24,7 @@ ws_bom_robot_app/llm/models/base.py,sha256=1TqxuTK3rjJEALn7lvgoen_1ba3R2brAgGx6E
|
|
|
24
24
|
ws_bom_robot_app/llm/models/feedback.py,sha256=pYNQGxNOBgeAAfdJLI95l7ePLBI5tVdsgnyjp5oMOQU,1722
|
|
25
25
|
ws_bom_robot_app/llm/models/kb.py,sha256=oVSw6_dmNxikAHrPqcfxDXz9M0ezLIYuxpgvzfs_Now,9514
|
|
26
26
|
ws_bom_robot_app/llm/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
|
-
ws_bom_robot_app/llm/providers/llm_manager.py,sha256=
|
|
27
|
+
ws_bom_robot_app/llm/providers/llm_manager.py,sha256=oVeEmZUnR1ysV-BI_zpwQ-gpXqmhSzjKFQQAHtaFGSI,16596
|
|
28
28
|
ws_bom_robot_app/llm/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
29
|
ws_bom_robot_app/llm/tools/tool_builder.py,sha256=CtZwJ94aj0YGA3yVWkyCUxNE7WgU2zWjhl_tEfEskxw,3432
|
|
30
30
|
ws_bom_robot_app/llm/tools/tool_manager.py,sha256=avoFERE0v9MFQ3pUBMug8eGYIXbIYl7NqkP1kjNee7s,15439
|
|
@@ -69,7 +69,7 @@ ws_bom_robot_app/llm/vector_store/loader/__init__.py,sha256=47DEQpj8HBSa-_TImW-5
|
|
|
69
69
|
ws_bom_robot_app/llm/vector_store/loader/base.py,sha256=GjUS2oaz0LHOSal5pipBkomZtrYUNcKPSd8bzhUU5Dc,6889
|
|
70
70
|
ws_bom_robot_app/llm/vector_store/loader/docling.py,sha256=IOv1A0HSIWiHWQFzI4fdApfxrKgXOqwmC3mPXlKplqQ,4012
|
|
71
71
|
ws_bom_robot_app/llm/vector_store/loader/json_loader.py,sha256=LDppW0ZATo4_1hh-KlsAM3TLawBvwBxva_a7k5Oz1sc,858
|
|
72
|
-
ws_bom_robot_app-0.0.
|
|
73
|
-
ws_bom_robot_app-0.0.
|
|
74
|
-
ws_bom_robot_app-0.0.
|
|
75
|
-
ws_bom_robot_app-0.0.
|
|
72
|
+
ws_bom_robot_app-0.0.94.dist-info/METADATA,sha256=n44evGwT4k5tC98mDH7o3FQZ9965owDk589PVJbg2SI,10116
|
|
73
|
+
ws_bom_robot_app-0.0.94.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
74
|
+
ws_bom_robot_app-0.0.94.dist-info/top_level.txt,sha256=Yl0akyHVbynsBX_N7wx3H3ZTkcMLjYyLJs5zBMDAKcM,17
|
|
75
|
+
ws_bom_robot_app-0.0.94.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|