Skip to content

Retrieve definitions ahead of imports for explicit symbol questions - #65

Merged
harshitethic merged 5 commits into
mainfrom
fix/definition-retrieval
Nov 5, 2026
Merged

harshitethic merged 5 commits into
mainfrom
fix/definition-retrieval

Conversation

@harshitethic

Copy link
Copy Markdown
Owner

Fixes #63. For explicit “Where is NAME defined/declared?” questions, search for the whole identifier, including short names. Prefer a Python def, async def, or class declaration line over an import and anchor the excerpt at that declaration even when it appears late. This is lexical source retrieval, so dynamic definitions and full language semantics are outside its scope.

On the fictional catalog, the evaluation changes from 4/6 to 6/6. Regressions also cover partial identifiers, short names, README examples and a late async declaration under a tight character budget. Ran the analyzer regression suite locally.

@harshitethic
harshitethic merged commit e7731bc into main Nov 5, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Measure and fix misleading top-file results on the catalog demo

1 participant