Skip to content

Commit

Permalink
fix(rag-ai): update model type
Browse files Browse the repository at this point in the history
  • Loading branch information
benjidotsh committed Nov 13, 2024
1 parent 1cca13c commit 14057d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/backend/rag-ai-backend/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
modelExtensionPoint,
} from '@roadiehq/rag-ai-node';
import { BaseLLM } from '@langchain/core/language_models/llms';
import { BaseChatModel } from '@langchain/core/language_models/chat_models';

/**
* Rag AI backend plugin
Expand All @@ -40,7 +41,7 @@ export const ragAiPlugin = createBackendPlugin({
register(env) {
let augmentationIndexer: AugmentationIndexer | undefined;
let retrievalPipeline: RetrievalPipeline | undefined;
let model: BaseLLM | undefined;
let model: BaseLLM | BaseChatModel | undefined;

env.registerExtensionPoint(augmentationIndexerExtensionPoint, {
setAugmentationIndexer(indexer) {
Expand Down

0 comments on commit 14057d9

Please sign in to comment.