chattercatcher 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -25
- package/dist/cli.js +321 -281
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -16
- package/dist/index.js +222 -251
- package/dist/index.js.map +1 -1
- package/docs/DEVELOPMENT_PLAN.md +1 -1
- package/docs/TECHNICAL_ARCHITECTURE.md +10 -10
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -740,25 +740,11 @@ declare function indexMessageChunks(input: {
|
|
|
740
740
|
messageIds?: string[];
|
|
741
741
|
}): Promise<VectorIndexStats>;
|
|
742
742
|
|
|
743
|
-
declare function getLanceDbPath(config: AppConfig): string;
|
|
744
|
-
declare class LanceDbVectorStore implements VectorStore {
|
|
745
|
-
private readonly connection;
|
|
746
|
-
private readonly tableName;
|
|
747
|
-
private constructor();
|
|
748
|
-
static connect(uri: string, tableName?: string): Promise<LanceDbVectorStore>;
|
|
749
|
-
static connectFromConfig(config: AppConfig, tableName?: string): Promise<LanceDbVectorStore>;
|
|
750
|
-
close(): void;
|
|
751
|
-
upsert(records: VectorRecord[]): Promise<void>;
|
|
752
|
-
search(vector: number[], limit: number): Promise<VectorSearchResult[]>;
|
|
753
|
-
count(): Promise<number>;
|
|
754
|
-
private ensureTable;
|
|
755
|
-
private openTableIfExists;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
743
|
declare function hasEmbeddingConfig(config: AppConfig, secrets: AppSecrets): boolean;
|
|
759
744
|
declare function createHybridRetriever(input: {
|
|
760
745
|
config: AppConfig;
|
|
761
746
|
secrets: AppSecrets;
|
|
747
|
+
database: SqliteDatabase;
|
|
762
748
|
messages: MessageRepository;
|
|
763
749
|
excludeMessageIds?: string[];
|
|
764
750
|
}): Promise<{
|
|
@@ -779,6 +765,7 @@ declare function processMessagesNow(input: {
|
|
|
779
765
|
secrets: AppSecrets;
|
|
780
766
|
database: SqliteDatabase;
|
|
781
767
|
limit?: number;
|
|
768
|
+
embedding?: EmbeddingModel;
|
|
782
769
|
}): Promise<ManualMessageIndexResult>;
|
|
783
770
|
|
|
784
771
|
declare class MessageFtsRetriever implements Retriever {
|
|
@@ -808,4 +795,4 @@ declare class VectorRetriever implements Retriever {
|
|
|
808
795
|
declare function createWebApp(config: AppConfig): FastifyInstance;
|
|
809
796
|
declare function startWebServer(config: AppConfig): Promise<void>;
|
|
810
797
|
|
|
811
|
-
export { type AppConfig, type AppSecrets, type AskWithRagInput, type BuildEvidencePromptOptions, type ChatMessage, type ChatModel, type ChatRecord, type Citation, type DataExportResult, type DataRestoreResult, type DeleteLocalDataResult, type DeleteTargetType, type DoctorCheck, type DoctorOptions, type DoctorStatus, type EmbeddingModel, type EvidenceBlock, type EvidencePrompt, type EvidenceSource, type FeishuAttachmentMetadata, type FeishuDownloadResourceInput, type FeishuDownloadedResource, type FeishuGatewayOptions, type FeishuGatewayRuntime, FeishuMessageSender, type FeishuQuestionDecision, FeishuQuestionHandler, type FeishuQuestionHandlerOptions, type FeishuReceiveMessageEvent, FeishuResourceDownloader, type FileJobRecord, FileJobRepository, type FileJobStatus, type FileRecord, type GatewayAttachmentIngestResult, type GatewayIngestAndDownloadResult, type GatewayIngestResult, GatewayIngestor, type GatewayPidRecord, type GatewayRuntimeState, type GroundedAnswer, HybridRetriever, type HybridRetrieverOptions, type IngestLocalFileResult, type IngestMessageInput,
|
|
798
|
+
export { type AppConfig, type AppSecrets, type AskWithRagInput, type BuildEvidencePromptOptions, type ChatMessage, type ChatModel, type ChatRecord, type Citation, type DataExportResult, type DataRestoreResult, type DeleteLocalDataResult, type DeleteTargetType, type DoctorCheck, type DoctorOptions, type DoctorStatus, type EmbeddingModel, type EvidenceBlock, type EvidencePrompt, type EvidenceSource, type FeishuAttachmentMetadata, type FeishuDownloadResourceInput, type FeishuDownloadedResource, type FeishuGatewayOptions, type FeishuGatewayRuntime, FeishuMessageSender, type FeishuQuestionDecision, FeishuQuestionHandler, type FeishuQuestionHandlerOptions, type FeishuReceiveMessageEvent, FeishuResourceDownloader, type FileJobRecord, FileJobRepository, type FileJobStatus, type FileRecord, type GatewayAttachmentIngestResult, type GatewayIngestAndDownloadResult, type GatewayIngestResult, GatewayIngestor, type GatewayPidRecord, type GatewayRuntimeState, type GroundedAnswer, HybridRetriever, type HybridRetrieverOptions, type IngestLocalFileResult, type IngestMessageInput, type LogFileInfo, type LogTailResult, type ManualMessageIndexResult, MemoryVectorStore, MessageFtsRetriever, type MessageRecord, MessageRepository, type MessageSearchResult, type MessageSender, OpenAICompatibleChatModel, type OpenAICompatibleChatOptions, OpenAICompatibleEmbeddingModel, type OpenAICompatibleEmbeddingOptions, type ParsedFile, type SourceType, type SqliteDatabase, type StopGatewayResult, type TextChunk, type VectorIndexStats, type VectorRecord, VectorRetriever, type VectorSearchResult, type VectorStore, appConfigSchema, appSecretsSchema, applySecretInput, askWithRag, buildEvidencePrompt, chunkText, cosineSimilarity, createChatModel, createDefaultConfig, createDefaultSecrets, createEmbeddingModel, createFeishuEventDispatcher, createFeishuGateway, createHybridRetriever, createWebApp, deleteLocalData, describeSupportedParseTypes, ensureConfigFiles, exportLocalData, extractFeishuAttachment, followLogFile, formatCitation, formatCitations, formatDoctorChecks, generateGroundedAnswer, getDatabasePath, getFeishuQuestionDecision, getGatewayLogPath, getGatewayPidPath, getGatewayRuntimeState, getLogsDirectory, hasEmbeddingConfig, indexMessageChunks, ingestLocalFile, isFeishuMessageAddressedToBot, isProcessRunning, isSupportedParseFile, isSupportedTextFile, listLogFiles, loadConfig, loadSecrets, mapDomain, maskSecret, migrateDatabase, normalizeFeishuReceiveMessageEvent, normalizeLineCount, openDatabase, parseFileToText, processMessagesNow, rankEvidenceForPrompt, readGatewayPidRecord, readLatestLogTail, readLogTail, removeGatewayPidRecord, resetConfigFiles, resolveEmbeddingApiKey, resolveLogPath, restoreLocalData, runDoctor, saveConfig, saveSecrets, startWebServer, stopGatewayProcess, writeGatewayPidRecord };
|