Skip to main content

Overview

Search for entities in the knowledge graph by name or alias. Display entity details, connections, and descriptions.

Usage

Arguments

string
required
Search term that matches entity names and aliases (case-insensitive).

Options

boolean
default:"false"
Show connected entities (incoming and outgoing relations). Use -r as shorthand.
boolean
default:"false"
Show entity description generated by sift narrate. Use -d as shorthand.
string
Filter results by entity type (e.g., PERSON, ORGANIZATION). Use -t as shorthand.
string
Output directory containing graph data. Use -o as shorthand.
boolean
default:"false"
Show all relations (default: limit to 10). Use -v as shorthand.

Behavior

Search Algorithm

Matches query against:
  • Entity names (case-insensitive partial match)
  • Entity aliases (from aliases or also_known_as attributes)

Result Display

For each match:
  • Entity Type - E.g., PERSON, ORGANIZATION
  • Name - Primary entity name
  • Aliases - Alternative names (if any)
  • Connections - Degree (number of relations)
  • Source Documents - Origin documents
  • Description - Narrative summary (if --description and available)
  • Relations - Connected entities (if --relations)

Relation Format

Outgoing relations:
Incoming relations:

Examples

Finds all entities with “John” in name or aliases.

With relations

Shows Acme Corp and all connected entities (limit 10).

With descriptions

Displays narrative description (requires sift narrate to have been run).

Filter by type

Only shows PERSON entities matching “Smith”.

Full details with all relations

Shows all relations, description, and verbose output.
Finds organizations with “University” in name and shows connections.

Output Format

Example Output

Relation Limits

By default, shows up to 10 relations per entity:
Use --verbose to show all relations.

Integration with Narrate

The --description flag requires entity_descriptions.json:
If descriptions not found:

No Results

If no matches found:

Error Handling

Exits with error if:
  • No graph_data.json found (run sift build first)

Use Cases

Find entity by partial name

Matches “MIT”, “Committee”, “Yosemite”, etc.

Explore entity network

See all connections to understand entity’s role.

Verify entity exists

Check if specific entity was extracted.

See Also

  • view - Visual graph exploration
  • narrate - Generate entity descriptions
  • export - Export graph data