feat(config): add ModelsConfig type to CollectionConfig

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
JohnRichardEnders 2026-04-03 17:05:14 +02:00 committed by Tobias Lütke
parent c940ce19d0
commit 14b384d9d8

View File

@ -33,6 +33,15 @@ export interface Collection {
includeByDefault?: boolean; // Include in queries by default (default: true)
}
/**
* Model configuration for embedding, reranking, and generation
*/
export interface ModelsConfig {
embed?: string;
rerank?: string;
generate?: string;
}
/**
* The complete configuration file structure
*/
@ -41,6 +50,7 @@ export interface CollectionConfig {
editor_uri?: string; // Editor URI template for terminal hyperlinks
editor_uri_template?: string; // Alias for editor_uri
collections: Record<string, Collection>; // Collection name -> config
models?: ModelsConfig;
}
/**