
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
from libs.community.tests.unit_tests.chains.test_pebblo_retrieval import retriever
pip install -U langchain-mongodb
import os
from langchain_mongodb import MongoDBAtlasVectorSearch
from langchain_openai import OpenAIEmbeddings
# Pull MongoDB Atlas URI from environment variables
MONGODB_ATLAS_CONNECTION_STRING = os.environ["MONGODB_CONNECTION_STRING"]
DB_NAME = "langchain_db"
COLLECTION_NAME = "test"
VECTOR_SEARCH_INDEX_NAME = "index_name"
MODEL_NAME = "text-embedding-3-large"
OPENAI_API_KEY = os.environ["OPENAI_API_KEY"]
vectorstore = MongoDBAtlasVectorSearch.from_connection_string(
connection_string=MONGODB_ATLAS_CONNECTION_STRING,
namespace=DB_NAME + "." + COLLECTION_NAME,
embedding=OpenAIEmbeddings(model=MODEL_NAME),
index_name=VECTOR_SEARCH_INDEX_NAME,
)
retrieved_docs = vectorstore.similarity_search(
"How do I deploy MongoDBAtlasVectorSearch in our production environment?")
FAQs
An integration package connecting MongoDB and LangChain
We found that langchain-mongodb demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.