Skip to content

sir-ad/phantom-knowledge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phantom Knowledge Layer

Vector embeddings, RAG, and connectors for AI applications.

Quick Start

npm install @phantom-pm/knowledge
import { createKnowledgeEngine, GitHubConnector } from '@phantom-pm/knowledge';

const engine = await createKnowledgeEngine({
  embeddings: { provider: 'ollama' },
  vectorStore: { type: 'memory' }
});

// Add documents
await engine.addDocuments([
  { id: '1', content: 'My content', source: 'test' }
]);

// Query
const result = await engine.query('What is this about?');
console.log(result.answer);
console.log(result.citations);

Features

  • Vector embeddings (OpenAI, Ollama)
  • RAG with citations
  • Connectors (GitHub, more coming)
  • In-memory & file storage

CLI

phantom-knowledge init
phantom-knowledge search "query"
phantom-knowledge sync github

Docs

See README.md for full documentation.

About

Phantom Knowledge Layer - Vector embeddings, RAG, and connectors for Phantom PM OS

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors