@melaya/runner 1.0.51 → 1.0.52
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.
- package/dist/localRagIngest.py +4 -1
- package/localRagIngest.py +4 -1
- package/package.json +1 -1
package/dist/localRagIngest.py
CHANGED
|
@@ -484,7 +484,10 @@ async def _ingest_cloud_files(args) -> int:
|
|
|
484
484
|
first_emit = False
|
|
485
485
|
continue
|
|
486
486
|
vectors_resp = await embedder(text=texts)
|
|
487
|
-
|
|
487
|
+
# agentscope's embedding adapters already unwrap to a flat list
|
|
488
|
+
# of vectors (list[list[float]]) via _openai_embedding.py L104 /
|
|
489
|
+
# _ollama_embedding.py — do NOT re-access `.embedding`.
|
|
490
|
+
vectors = list(vectors_resp.embeddings)
|
|
488
491
|
if len(vectors) != len(texts):
|
|
489
492
|
raise RuntimeError(
|
|
490
493
|
f"embedder returned {len(vectors)} vectors for {len(texts)} chunks"
|
package/localRagIngest.py
CHANGED
|
@@ -484,7 +484,10 @@ async def _ingest_cloud_files(args) -> int:
|
|
|
484
484
|
first_emit = False
|
|
485
485
|
continue
|
|
486
486
|
vectors_resp = await embedder(text=texts)
|
|
487
|
-
|
|
487
|
+
# agentscope's embedding adapters already unwrap to a flat list
|
|
488
|
+
# of vectors (list[list[float]]) via _openai_embedding.py L104 /
|
|
489
|
+
# _ollama_embedding.py — do NOT re-access `.embedding`.
|
|
490
|
+
vectors = list(vectors_resp.embeddings)
|
|
488
491
|
if len(vectors) != len(texts):
|
|
489
492
|
raise RuntimeError(
|
|
490
493
|
f"embedder returned {len(vectors)} vectors for {len(texts)} chunks"
|