惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
美团技术团队
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
V
V2EX
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
量子位
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 聂微东
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
Jina AI
Jina AI
月光博客
月光博客
L
LangChain Blog

LangChain Forum - Latest topics

Seeking help regarding the connection between Websocket and tool calls Tool invocation error with empty error message when using `InjectedState` + `Command` return in async tool How to use @langchain/react FileSystem middleware Using ChatSnowflake with agents Built llmsessioncontract on AgentMiddleware: runtime enforcement of tool-call protocols — feedback wanted DeltaChannelHistory not found in langgraph-api:3.12 Improving citation accuracy and reducing hallucinations in custom Parent-Child RAG pipeline (Gemma3:4B + FAISS+BM25 + Cross-encoder reranker) Built a live autonomous AI agent network using LangGraph-style economics — looking for feedback How are you validating LangChain agent output before it executes shell commands? Cross-site pattern pool for production agent failures — looking for 5 pilot teams (open spec, CC-BY-4.0) Metadata filter not filtering for alerts Using custom MCP servers with assistants How to use tool calling using ChatLlamaCpp and Gemma 4 E4B with create_agent? CLI - No Longer Sending traces to Langsmith Connecting the Slack integration fails with invalid_team_for_non_distributed_app The Docs says open router can be used with init_chat_model but throws an error Interested to contribute to langgraph postgre checkpointer for multiple adapter support Modal Inference Trouble understanding and editing experiment summary evaluators feedbacks SSL certificate error from httpx with LangGraph server [Feature Request] Wire allowed_msgpack_modules in langgraph.json Serving an agent with the LangGraph CLI dev command Proposal: implement delete_for_runs for SQLite checkpoint savers WikipediaLoader endup in JSONDecodeError Human-in-the-loop approval dashboard for LangGraph agents — open source, free to deploy Ombre — open source security and audit layer for LangChain apps Should interrupt() be split into two primitives — one for human input, one for s2s data fetching? Unable to delete runs from annotation queue First Bedrock call after idle is slow on TTFT (follow-ups in the same trace are fast)
Add faiss-node-native as async alternative vector store f...
anupammaurya · 2026-04-20 · via LangChain Forum - Latest topics
Summary I’m the maintainer of faiss-node-native ( @faiss-node /native on npm), a high-performance async Node.js native binding for Facebook FAISS. I’d like to propose adding it as an alternative to the existing faiss-node integration in LangChain.js. Problem with current faiss-node integration The current LangChain.js FAISS vector store uses faiss-node which has a synchronous blocking API it freezes the Node.js event loop during search. In production servers handling concurrent requests, this causes significant performance degradation and unresponsive APIs. See this open issue for reference: github.com/langchain-ai/langchainjs Could not import faiss-node (NextJS) when loading from python opened 04:58PM - 15 Jan 24 UTC closed 09:32PM - 17 Jan 24 UTC Simbaclaws Hi, I know this is a duplicate of: https://github.com/langchain-ai/langchainj … s/issues/2107 However, in that issue it says that this has been resolved. While I'm on the latest release: 0.1.2 Which should have the fix for this available here: https://github.com/langchain-ai/langchainjs/pull/2178 My issue is the following: https://github.com/langchain-ai/langchainjs/issues/2107#issuecomment-1891106038 For reference, I'll post it below: Hi there, I'm getting the same type of error message in my console when I try to: ```javascript const vectorstore = await FaissStore.loadFromPython("./knowledge", new OpenAIEmbeddings({ modelName: "text-embedding-ada-002" })); ``` knowledge is a folder in the root folder that includes 2 files: ``` index.pkl index.faiss ``` I am using the following to see whether my API route in nextjs can reach the files: ```javascript const knowledge = path.resolve('./knowledge'); const filenames = fs.readdirSync(knowledge); console.log(filenames); ``` this logs the actual filenames, so I know they're there... I'm getting the following error message in my console: ``` Error: Could not import faiss-node. Please install faiss-node as a dependency with, e.g. `npm install -S faiss-node`. Error: Cannot read properties of undefined (reading 'indexOf') at FaissStore.importFaiss (webpack-internal:///(rsc)/./node_modules/@langchain/community/dist/vectorstores/faiss.js:363:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async readIndex (webpack-internal:///(rsc)/./node_modules/@langchain/community/dist/vectorstores/faiss.js:292:37) at async Promise.all (index 1) at async FaissStore.loadFromPython (webpack-internal:///(rsc)/./node_modules/@langchain/community/dist/vectorstores/faiss.js:295:32) at async POST (webpack-internal:///(rsc)/./app/api/chat/route.ts:56:29) at async D:\Development\Persoonlijk\gpt-creator\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:63251 ``` I'm running this on windows with ```npm run dev``` I've already tried installing the package, but I have no clue why my nextjs isn't importing the files... My node version is 20.10.0 Is there anything I can do to get this issue sorted? It says read properties of undefined (reading 'indexOf') This to me indicates it can not read the ./knowledge folder with files for some reason. But I haven't been able to figure out why yet. I could be totally wrong here though. What faiss-node-native offers Fully async Promise-based API — never blocks the event loop Thread-safe concurrent operations with mutex protection HNSW index support (not available in faiss-node) Buffer serialization — store indexes in Redis/MongoDB Multiple index types: FLAT_L2, IVF_FLAT, HNSW Full TypeScript support Actively maintained (v0.1.5, 103 commits) Links GitHub: GitHub - anupammaurya6767/faiss-node-native · GitHub npm: https://npmjs.com/package/@faiss-node/native Docs: @faiss-node/native Documentation Blog post explaining the problem in detail: Building High-Performance Vector Search in Node.js with FAISS — Without Blocking the Event Loop - DEV Community Proposal Two possible approaches: Add faiss-node-native as a drop-in alternative alongside existing faiss-node support I can submit a PR implementing the integration if the team is open to it Happy to help with implementation! 1 post - 1 participant Read full topic