Replies: 1 comment
-
The issue with the
Here is the type definition for the parameters: export type CreateRetrievalChainParams<RunOutput> = {
retriever: BaseRetrieverInterface;
combineDocsChain: BaseChain;
}; And the function signature: export async function createRetrievalChain<RunOutput>({
retriever,
combineDocsChain,
}: CreateRetrievalChainParams<RunOutput>): Promise<
Runnable<
{ input: string; chat_history?: BaseMessage[] | string } & {
[key: string]: unknown;
},
{ context: Document[]; answer: RunOutput } & { [key: string]: unknown }
>
> {
// Function implementation
} Ensure that the Additionally, make sure that all necessary environment variables and configurations are correctly set up, as missing configurations can also cause issues. If the issue persists, please provide more details about the specific error message you are encountering, as this can help in diagnosing the problem more accurately [1][2]. |
Beta Was this translation helpful? Give feedback.
-
Checked other resources
Commit to Help
Example Code
Description
await req.chatService.chat(prompt); does not seem to work even though there is no undefined in all the classes. What is wrong with my code in either ClassService or in my export async chat.
System Info
Mac
Node TypeScript
Langchain@0.2.8
Beta Was this translation helpful? Give feedback.
All reactions