-
Notifications
You must be signed in to change notification settings - Fork 0
chore: switch to umem_ai embed #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Greptile SummaryConsolidated embedding functionality from the separate
Critical Issue: The Confidence Score: 1/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant MemoryController
participant EmbeddingModel
participant AIProvider
participant BedrockProvider
participant VectorStore
Client->>MemoryController: create_memory(request)
MemoryController->>MemoryController: build memory with LLM annotations
MemoryController->>EmbeddingModel: build EmbeddingRequest
MemoryController->>EmbeddingModel: embed(request)
EmbeddingModel->>AIProvider: do_embed(request)
alt AmazonBedrock
AIProvider->>BedrockProvider: embed(request)
BedrockProvider->>BedrockProvider: spawn parallel invoke_model tasks
BedrockProvider-->>AIProvider: EmbeddingResponse
else OpenAI (unimplemented)
AIProvider-->>EmbeddingModel: panic: unimplemented!()
end
AIProvider-->>EmbeddingModel: EmbeddingResponse
EmbeddingModel-->>MemoryController: embeddings: Vec<Vec<f32>>
MemoryController->>MemoryController: convert to &[&[f32]] slices
MemoryController->>VectorStore: insert(slices, memories)
VectorStore-->>MemoryController: Ok(())
MemoryController-->>Client: Memory
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional Comments (1)
-
crates/umem_ai/src/lib.rs, line 283-292 (link)logic:
do_embedonly handlesAmazonBedrockbutEmbeddingModel::get_model()(lines 176-216) can return anOpenAIprovider. This causes a runtime panic withunimplemented!()when using OpenAI for embeddings.
16 files reviewed, 3 comments
No description provided.