langchainjs
langchainjs copied to clipboard
Hi all, I'm using langchain on an AWS Lambda with Node.js runtime version NODEJS_18_X. I'm trying to create a summary of an array of documents, and I'm using RecursiveCharacterTextSplitter to...
I am testing to load my article data JSON using a JSON loader and calling it with RetrievalQAChain. However, sometimes an error occurs and upon inspection, it is because the...
Hi, I'm trying to use this package and I created this: ```js const { HNSWLib } = await import("langchain/vectorstores"); const { OpenAIEmbeddings } = await import("langchain/embeddings"); const vectorStore = await...
Error initializing the application: TypeError: Cannot read properties of undefined (reading 'index')
`import { Chroma } from 'langchain/vectorstores'; import { OpenAIEmbeddings } from "langchain/embeddings"; import { CharacterTextSplitter } from 'langchain/text_splitter'; import { DirectoryLoader, PDFLoader } from 'langchain/document_loaders'; import { RetrievalQAChain } from...
Hi, I'm trying to figure out how to use LangChain in a VisualStudio Code extension. I'm aware that the lib currently doesn't support this environment, but maybe someone could give...
Hi, I've been playing around with Langchain and GPT-4, building some chat tools, and I was wondering how I can integrate agent tools like calculator and search into ConversationalRetrievalQAChain. The...
I am currently exploring the Agents API and could not find a GraphQL Tool. Are you planning to provide one? (thanks for langchain!)
how can I change from ChatVectorDBQAChain to ConversationChain in langchainjs? It would be great to have something like **AppendChain** contruct that allows to add multiple chains. e.g. ``` const qaChain...
I'm trying to write an agent executor that can use multiple tools and return direct from `VectorDBQAChain` with source documents. Here is my setup: ``` const chat = new ChatOpenAI({...