langchain
未读
langchian RAG
初步RAG 文档载入 path = './test'
from langchain_community.document_loaders import DirectoryLoader,TextLoader
text_loader_kwargs = {"autodetect_encoding": Tr
langchain
未读
langchain注意事项
在langchain0.2.x版本内有件事未解决:当neelde越多,context越长,召回效果越差,且neelde处于context末尾时检索到的概率更高
langchain
未读
langchain进阶
使用postgresql存储memory from langchain_community.chat_message_histories import (
PostgresChatMessageHistory,
)
history = PostgresChatMessageHistory(
langchain
未读
windows系统安装pgvector遇到的坑
首先安装好postgresql,这一步就不用赘述了。 安装pgvector。这一步就挺搞的,跟着官方的文档走居然磨了俩小时才安好。 得先有visual studio的c++环境(不是vs code),然后去设置环境变量,我设置的是C:\Program Files\Microsoft Visual S