langchainjs
langchainjs copied to clipboard
Added some simple logging colours to the ConsoleCallbackHandler along with a utility for Chalk. Have also improved the formatting of the log outputs to create consistent newlines and trim leading...
Adds an abstract splitter `JavascriptBaseTextSplitter` which splits on regex, implemented by: `JavascriptClassTextSplitter` - which splits right before class and interface declarations (and any comments for them) `JavascriptFunctionTextSplitter` - which splits...
I'm trying to create embeddings for a documentation and store it in Chroma. As soon as the first chunk of Documents is written using `Chroma.fromDocuments`, the next chunk (with `addDocuments`)...
Similar to [Python](https://python.langchain.com/en/latest/modules/memory/examples/redis_chat_message_history.html) (and the current Motorhead implementation), would it be possible to get a RedisMemory client? Also - if you ask in the interactive JS docs, the response hallucinates...
Currently the Cheerio doc loader is hardcoded to get the entire page, using `$("body")`. However typically there is a main content area, which is important, and surrounding elements which are...
I have looked over the documentation and various examples and it is not clear to me how to preserve the state of an LLM chain between sessions. Let's say I...
I am using the ChatOpenAI model along with the ConversationChain from the LangChain library, and I am trying to enable caching to reduce API calls and token usage. I've set...
Context: -WindowAI is a 'bring your own api key' browser extension - site: windowai.io - Latest windowai browser extension always available at: https://drive.google.com/uc?id=1ExPZuW_rl_RMSGLDcBLdBMVmganecZoq&export=download. - how to install this chrome extensions...
Hi ! I'm trying to convert the python implementation of Langchain to JS, yet I cannot seem to find where the `SequentialChain` is exported from in this repo. Or is...
when use agent, handleLLMNewToken will receive json,how can i receive the real output from stream?