URL
Import web pages, documentation sites, and blog posts. Lattice extracts the main content and handles JavaScript-rendered pages.
Sources are the knowledge foundation of your Lattice workspace. By importing documents, URLs, and repositories, you build a curated knowledge base that grounds all AI responses in verifiable information.
URL
Import web pages, documentation sites, and blog posts. Lattice extracts the main content and handles JavaScript-rendered pages.
Upload research papers, model cards, internal documentation, and reports. Text is extracted and chunked for search.
GitHub
Connect repositories to analyze code, README files, and documentation. Great for evaluating open-source tools.
YouTube
Index video transcripts from tutorials, conference talks, and product demos.
When you add a source, Lattice processes it through several stages:
Fetch → Extract → Chunk → Embed → IndexLattice automatically classifies sources into categories:
| Category | Examples |
|---|---|
documentation | API docs, user guides, reference material |
benchmark | Performance comparisons, evaluation results |
pricing | Cost calculators, pricing pages, rate cards |
model_card | Model specifications, capabilities, limitations |
blog | Announcements, tutorials, thought leadership |
research | Academic papers, technical reports |
Classification helps the AI understand context and prioritize relevant sources.
Sources are searchable using three modes:
Traditional text matching for exact terms:
"context window" AND "128K tokens"Vector similarity for meaning-based retrieval:
"How much does it cost to run a large language model?"→ Finds pricing pages even if they don't use those exact wordsCombines keyword and semantic results using Reciprocal Rank Fusion (RRF):
final_score = 1/(k + keyword_rank) + 1/(k + semantic_rank)This balances precision (keyword) with recall (semantic).
Boost specific sources in your queries using @mentions:
@anthropic-pricing Compare Claude pricing to GPT-4The mentioned source receives higher weight in search results.
Click any source in the panel to see:
For URL sources, click Refresh to re-fetch and re-index content. Useful when documentation is updated.
Remove sources you no longer need. Deletion removes all indexed chunks from the search index.
GET /api/workspaces/{workspace_id}/sourcesPOST /api/workspaces/{workspace_id}/sourcesContent-Type: application/json
{ "type": "url", "url": "https://docs.anthropic.com/claude/docs/models-overview"}GET /api/workspaces/{workspace_id}/sources/{source_id}DELETE /api/workspaces/{workspace_id}/sources/{source_id}POST /api/workspaces/{workspace_id}/searchContent-Type: application/json
{ "query": "context window limits", "mode": "hybrid", "limit": 10}