Documentation Index
Fetch the complete documentation index at: https://developers.autoplay.ai/llms.txt
Use this file to discover all available pages before exploring further.
RagPipeline (sync) and AsyncRagPipeline (async) connect the Autoplay event stream to your vector store with minimal code.
You provide two functions โ embed and upsert โ and the pipeline handles the rest.
Sync pipeline
Async pipeline
With a SessionSummarizer
Attach aSessionSummarizer to automatically condense actions before embedding.
This keeps your vector store entries compact and your context window small.
Compatible vector stores
Theupsert callable works with any vector store. Examples:
What gets upserted
| Event type | ID used | Text embedded |
|---|---|---|
ActionsPayload | session_id | payload.to_text() โ numbered action list |
SummaryPayload | session_id | payload.to_text() โ prose summary |
Client summary (via SessionSummarizer) | session_id | LLM-generated summary text |
session_id as the key โ so your vector store always has one up-to-date entry per session.
Constructor
RagPipeline(embed, upsert, summarizer=None)
Any embedding function. Receives
payload.to_text() and must return a vector.Writes the embedding to your vector store. Called with
(session_id, vector, metadata).Optional
SessionSummarizer. When set, actions are summarised before embedding.AsyncRagPipeline(embed, upsert, summarizer=None)
Same parameters but embed and upsert are async callables.
Callbacks
| Method | Description |
|---|---|
.on_actions(payload) | Wire to client.on_actions(...) |
.on_summary(payload) | Wire to client.on_summary(...) |











