Added
pw.io.mqtt.read
andpw.io.mqtt.write
methods for reading from and writing to MQTT.
Changed
pw.xpacks.llm.embedders.SentenceTransformerEmbedder
andpw.xpacks.llm.llms.HFPipelineChat
are now computed in batches. The maximum size of a single batch can be set in the constructor with the argumentmax_batch_size
.- BREAKING Arguments
api_key
andbase_url
forpw.xpacks.llm.llms.OpenAIChat
can no longer be set in the__call__
method, and instead, if needed, should be set in the constructor. - BREAKING Argument
api_key
forpw.xpacks.llm.llms.OpenAIEmbedder
can no longer be set in the__call__
method, and instead, if needed, should be set in the constructor. pw.io.postgres.write
now accepts arbitrary types for the values of thepostgres_settings
dict. If a value is not a string, Python'sstr()
method will be used.
Removed
pw.io.kafka.read_from_upstash
has been removed, as the managed Kafka service in Upstash has been deprecated.