Skip to main content

agrag.retrieval.methods.traversal

Entity resolution and seeded traversal, callable without a SearchEngine.

Free functions, not methods, for the same reason vector.py's vector_search is: the retrieval building blocks stay independently testable and SearchEngine stays an orchestrator over them.

Functions:

  • extract_entity_ids – Return raw entity ids from results, preserving order.
  • find_entity – Resolve a named entity to its top search hit, or None.
  • list_relationship_types – List the relationship types directly attached to a resolved entity.
  • traverse – Expand one resolved entity into its neighbours.

Attributes: