Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Entity-Identifier-Resolver (EIR)

Note

It is in its earliest state; many features are missing or not implementet yes.

⚠️Warning⚠️

EIR is NOT encrypted. Do NOT use it to store sensitive data! It is optimized for search.

EIR CLI Quick Start

The eir CLI is the developer tool for the Entity Identifier Resolver. It is used to build databases, inspect entities, manage indexes, and test search.

Commands

build        Build an EIR database
stats        Show database statistics
inspect      Inspect an entity
search       Search entities
index        Manage indexes (Not implemented)
generate     Generate test datasets (Not implemented)
completions  Generate shell completions (Not tested)

Build a database

cargo eir build \
  --input entities.json \
  --output database.eir

Inspect an entity

cargo eir inspect database.eir --entity 1

Example:

Entity: 1

Names:
  FizzBerry Spark
  Berry Spark
  FizzBerry

Tags:
  sparkling
  berry
  drink
  food

Relationships:
  MadeBy -> Aurora Foods
  InstanceOf -> Drink
  LocatedIn -> Denmark

Sources:
  Open Food Facts

Verbose mode shows internal IDs:

cargo eir inspect database.eir --entity 1 --verbose

Search entities

cargo eir search database.eir fizzberry

Output:

Search: fizzberry

FizzBerry Spark score=1.00 via=ExactAlias

Search supports:

  • Exact aliases
  • Prefix matching
  • Fuzzy matching
  • Token search
  • Tags
  • Attributes
  • Sources
  • Relationships

Example:

cargo eir search database.eir drink

Output:

Search: drink

Drink                  score=1.00 via=ExactAlias
Crystal Spring Water   score=0.70 via=Relationship
FizzBerry Spark        score=0.70 via=Relationship

Development workflow

# Generate test data
cargo eir generate

# Build database
cargo eir build --input entities.json --output database.eir

# Inspect data
cargo eir inspect database.eir --entity 1

# Test search
cargo eir search database.eir fizzberry

EIR is designed for fast local entity resolution using aliases, indexes, metadata, and relationships.

Contains AI-assisted code All art and icons are made by humans.

About

A fast, compact, and configurable entity-based search engine and resolver for content search and metadata analytics. Build in pure rust.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages