Comments (2)
Thanks for the error report, we are investigating the async
call issue and will send a correction shortly.
from pathway.
The error is caused by some wrappers being synchronous and some asynchronous. To remove the need of adapting the code to different wrappers, in version 0.11.0 of Pathway, there was introduced a new method for each embedder called get_embedding_dimension
, which takes care of running either synchronous or asynchronous code as needed. See here for documentation: https://pathway.com/developers/api-docs/pathway-xpacks-llm/embedders#pathway.xpacks.llm.embedders.LiteLLMEmbedder.get_embedding_dimension.
With the new method your code should now be:
embedder = embedders.LiteLLMEmbedder(
capacity = 5,
model = "lucataco/nomic-embed-text-v1 ",
api_base = "https://api.replicate.com/v1/predictions",
api_key="r8_2HleIfYKC6yE62t4m1Au7AHPv8LV0FN4SVHuq",
)
embedding_dimension: int = embedder.get_embedding_dimension()
print("Embedding dimension:", embedding_dimension)
from pathway.
Related Issues (20)
- Add `first_value`/`last_value` reducers. HOT 3
- Static table import (table_from_...) should not be under `pw.debug`
- [Bug]: "AttributeError: 'DataFrame' object has no attribute 'map'" when running Live Data Jupyter notebook. HOT 4
- [Bug]: Reproduction of Twitter's Custom Python Connector code encours Auth issues HOT 1
- Adjust examples using Twitter API HOT 1
- support datetime + formatting in connectors
- Parser giving unicode characters for Arabic language HOT 10
- getting error in "Streaming ETL pipelines" showcase HOT 5
- Cannot import name 'default_vector_document_index' from 'pathway.stdlib.indexing' (/usr/local/lib/python3.10/dist-packages/pathway/stdlib/indexing/__init__.py) HOT 4
- ImportError: cannot import name 'DataIndex' from 'pathway.stdlib.indexing' HOT 3
- Private Rag Example not working HOT 5
- [Bug]: *Table desugaring + *.ix(pw.this) desugaring fails HOT 1
- [QUESTION] How to deploy a Pathway AirByte streaming ETL microservice to Google Cloud run? HOT 9
- [Bug]: `pw.run()` never terminates when used with `multiprocessing`
- [Bug]: Error messages are not printed to screen when error happens on PATHWAY_PROCESS_ID > 0
- How to Embed each dict in jsonline format HOT 6
- Download files in parallel in gdrive connector
- [Bug]: `UDF_CACHING` persistence mode persists input if `persistent_id` is set. HOT 1
- [Bug]: csv connector should retry, not fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pathway.