Ver código fonte

feat(config): add ModelsConfig type to CollectionConfig

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
JohnRichardEnders 1 mês atrás
pai
commit
14b384d9d8
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10 0
      src/collections.ts

+ 10 - 0
src/collections.ts

@@ -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;
 }
 
 /**