Merged
Conversation
Contributor
Greptile SummaryThis PR introduces significant architectural improvements and new capabilities across three main areas: Major Changes:
Issues Found:
Architecture Improvements: Confidence Score: 2/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Client
participant MemoryMachine
participant MemoryController
participant Segmenter
participant Embedder
participant VectorStore
participant Reranker
participant LLM
Note over MemoryMachine: Initialization
Client->>MemoryMachine: new()
MemoryMachine->>Embedder: get_embedder()
MemoryMachine->>VectorStore: get_store()
MemoryMachine->>Reranker: get_reranker()
MemoryMachine->>LLM: get_model()
MemoryMachine-->>Client: MemoryMachine instance
Note over Client,LLM: Create Memory Flow
Client->>MemoryController: create(request)
MemoryController->>LLM: generate annotations
LLM-->>MemoryController: LLMAnnotated
MemoryController->>Embedder: generate_embedding(summary)
Embedder-->>MemoryController: vector
MemoryController->>VectorStore: insert(vector, memory)
VectorStore-->>MemoryController: ok
MemoryController-->>Client: Memory
Note over Client,Reranker: Multi-Search Flow (with Refine)
Client->>MemoryController: multi_search_with_context(query)
MemoryController->>Segmenter: process(query)
Segmenter-->>MemoryController: sub_queries
MemoryController->>Embedder: generate_embeddings(sub_queries)
Embedder-->>MemoryController: vectors
par Parallel Vector Search
MemoryController->>VectorStore: search(vector1)
MemoryController->>VectorStore: search(vector2)
MemoryController->>VectorStore: search(vectorN)
VectorStore-->>MemoryController: memories1
VectorStore-->>MemoryController: memories2
VectorStore-->>MemoryController: memoriesN
end
MemoryController->>Reranker: rank(query, all_memories)
Reranker-->>MemoryController: ranked_results
MemoryController-->>Client: Vec<Memory>
|
91ac4dd to
8be166c
Compare
Member
|
@greptile re-review. |
Move service initialization logic from binary entry points to MemoryMachine module. Convert MemoryController from static methods to instance-based architecture. Add async factory pattern for lazy component initialization (embedder, vector_store, reranker, language_model). Simplify grpc.rs and mcp.rs binaries to use MemoryMachine. Add MemoryMachineOptions for customization with sensible defaults from CONFIG.
898df0c to
8ff568b
Compare
vidurkhanal
approved these changes
Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.