
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
langchain-graph-retriever
Advanced tools
LangChain retriever for traversing document graphs on top of vector-based similarity search.
LangChain Graph Retriever is a Python library that supports traversing a document graph on top of vector-based similarity search. It works seamlessly with LangChain's retriever framework and supports various graph traversal strategies for efficient document discovery.
Install the library via pip:
pip install langchain-graph-retriever
Here is an example of how to use LangChain Graph Retriever:
from langchain_graph_retriever import GraphRetriever
from langchain_core.vectorstores import Chroma
# Initialize the vector store (Chroma in this example)
vector_store = Chroma(embedding_function=your_embedding_function)
# Create the Graph Retriever
retriever = GraphRetriever(
store=vector_store,
# Define edges based on document metadata
edges=[("keywords", "keywords")],
)
# Perform a retrieval
documents = retriever.retrieve("What is the capital of France?")
# Print the results
for doc in documents:
print(doc.page_content)
This project is licensed under the Apache 2 License. See the LICENSE file for more details.
FAQs
LangChain retriever for traversing document graphs on top of vector-based similarity search.
We found that langchain-graph-retriever demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.