Skip to content

Add optional context parameter to embedding-based grounding#29

Open
nicoloesch wants to merge 2 commits into
mainfrom
19-rag-context
Open

Add optional context parameter to embedding-based grounding#29
nicoloesch wants to merge 2 commits into
mainfrom
19-rag-context

Conversation

@nicoloesch

Copy link
Copy Markdown
Collaborator

Summary

ground_term() gains an optional context: str | None parameter, folded into the text passed to the on-demand query embedding call, letting callers supply disambiguating context alongside the term being grounded. No change to existing callers that omit it.

@gkennos
gkennos self-requested a review July 15, 2026 06:45
Comment thread src/omop_graph/reasoning/grounding.py
@nicoloesch

Copy link
Copy Markdown
Collaborator Author

This now depends on AustralianCancerDataNetwork/omop-emb#46 to pass so it can be included nicely.

@nicoloesch nicoloesch added the feature New backwards-compatible functionality. MINOR: x.y+1.z label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New backwards-compatible functionality. MINOR: x.y+1.z

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increase Context for Grounding in RAG

2 participants