File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
packages/api/src/functions Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change 11import { Readable } from 'node:stream' ;
22import { HttpRequest , InvocationContext , HttpResponseInit , app } from '@azure/functions' ;
33import { AIChatCompletionRequest , AIChatCompletionDelta } from '@microsoft/ai-chat-protocol' ;
4- import { Document } from '@langchain/core/documents' ;
54import { AzureOpenAIEmbeddings , AzureChatOpenAI } from '@langchain/openai' ;
65import { Embeddings } from '@langchain/core/embeddings' ;
76import { BaseChatModel } from '@langchain/core/language_models/chat_models' ;
@@ -11,7 +10,6 @@ import { FaissStore } from '@langchain/community/vectorstores/faiss';
1110import { ChatPromptTemplate , PromptTemplate } from '@langchain/core/prompts' ;
1211import { createStuffDocumentsChain } from 'langchain/chains/combine_documents' ;
1312import { AzureCosmosDBNoSQLVectorStore } from '@langchain/azure-cosmosdb' ;
14- import { createRetrievalChain } from 'langchain/chains/retrieval' ;
1513import 'dotenv/config' ;
1614import { badRequest , data , serviceUnavailable } from '../http-response.js' ;
1715import { ollamaChatModel , ollamaEmbeddingsModel , faissStoreFolder } from '../constants.js' ;
You can’t perform that action at this time.
0 commit comments