Installation¶
Requirements¶
- Ruby >= 3.0.0
- PostgreSQL >= 14 with pgvector extension
- Bundler
Install the Gem¶
Add FactDb to your Gemfile:
Then install:
Or install directly:
Install pgvector¶
FactDb uses pgvector for semantic search. Install the PostgreSQL extension:
Then enable the extension in your database:
Optional Dependencies¶
LLM Extraction¶
For LLM-powered fact extraction, add the ruby_llm gem:
Async Processing¶
For parallel pipeline processing with async fibers:
Verify Installation¶
Create a simple test script:
Run it:
Next Steps¶
- Database Setup - Configure your database
- Quick Start - Start using FactDb