Pangea Multipass for LangChain
The pangea-multipass-langchain package extends Pangea Multipass to integrate with LangChain's document processing, providing enhanced security, metadata filtering, and access control for LangChain documents. This package supports integrations with Google Drive, JIRA, and Confluence, leveraging metadata-based filtering and authorization to control document access.
Features
- Document Reader: Custom
LangChainDocumentReaderclass reads content from LangChain documents, adapting to Pangea's document model. - Integration Processors:
LangChainJiraFilter: Allows JIRA integration, authenticating and processing JIRA documents in LangChain.LangChainConfluenceFilter: Provides Confluence integration for document access control in LangChain.LangChainGDriveFilter: Uses Google OAuth credentials to access and filter Google Drive documents in LangChain.
- Document Filter Mixer: The
DocumentFilterMixeraggregates multiple processors, applying customized filters for advanced access control across various sources.
Installation
Use Poetry to install dependencies:
poetry add pangea-multipass-langchain
Usage
Core Components
- LangChainDocumentReader: The LangChainDocumentReader class enables reading content from LangChain documents for authorization and metadata filtering. This class acts as a bridge between LangChain documents and Pangea's authorization model.
- Processors for LangChain Integration: The package includes processors that integrate with specific data sources using authentication credentials. Each processor retrieves metadata from documents, allowing fine-grained control over document access:
- LangChainJiraFilter: Authenticates with JIRA and processes JIRA documents.
- LangChainConfluenceFilter: Processes Confluence documents, applying access control.
- LangChainGDriveFilter: Integrates Google Drive documents into LangChain using OAuth2 credentials.
- DocumentFilterMixer: The DocumentFilterMixer aggregates multiple document processors, applying filters to handle complex document access control. It retrieves authorized and unauthorized documents based on the combined filters from each processor.
- Filter Documents: filter() applies filters to a list of LangChain documents.
- Retrieve Unauthorized Documents: get_unauthorized_documents() retrieves documents that fail authorization checks.
- Retrieve Authorized Documents: get_authorized_documents() provides access to documents meeting authorization criteria.
- Metadata Filtering: The package includes metadata-based filtering, allowing users to apply filters with operators like EQ, GT, LT, CONTAINS, and more. Each filter can be customized to match document metadata for precise access control.
License
This project is licensed under the MIT License.
Metadata
Release files for pangea-multipass-langchain 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pangea_multipass_langchain-0.2.0.tar.gz | 3.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pangea_multipass_langchain-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / pangea_multipass_langchain-0.2.0.tar.gz
| Download URL | pangea_multipass_langchain-0.2.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c01c571b342aee91bec893a4f908611483c03ce05fd65ef8f93f62e02b93a6bf
|
|
BLAKE2b-256 checksum How to use checksums |
bd83d4cdcc327145f48d6e507ee1574d2aa0d68b8cf924938f7570a9355228da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.10.16 Linux/6.1.112+
|
Release files / pangea_multipass_langchain-0.2.0-py3-none-any.whl
| Download URL | pangea_multipass_langchain-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bfacda8b9f8a0e7c63bb1c27c1b74293189cc2319c998b38823ea7e097068c71
|
|
BLAKE2b-256 checksum How to use checksums |
94b7f75574bdca6b7f44926d5cb12048a74bb4f930c727c7223ac46aaeba7599
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.10.16 Linux/6.1.112+
|
Security for pangea-multipass-langchain 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.