Sinapsis Langchain Readers
Templates for easy integration of LangChain document loaders within Sinapsis.
🐍 Installation • 🚀 Features • 📚 Usage example • 📙 Documentation • 🔍 License
The sinapsis-langchain-readers module adds support for the LangChain library, in particular, LangChain community data loaders.
🐍 Installation
Install using your package manager of choice. We encourage the use ofuv
Example with uv:
uv pip install sinapsis-langchain-readers --extra-index-url https://pypi.sinapsis.tech
or with raw pip:
pip install sinapsis-langchain-readers --extra-index-url https://pypi.sinapsis.tech
uv pip install sinapsis-langchain-readers[all] --extra-index-url https://pypi.sinapsis.tech
🚀 Features
Templates Supported
The Sinapsis Langchain module provides wrapper templates for LangChain's community data loaders, making them seamlessly usable within Sinapsis.
For example, for WikipediaLoaderWrapper use sinapsis info --example-template-config WikipediaLoaderWrapper to produce the following example config:
agent:
name: agent to load Wikipedia documents using WikipediaLoaderWrapper template
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: WikipediaLoaderWrapper
class_name: WikipediaLoaderWrapper
template_input: InputTemplate
attributes:
add_document_as_text_packet: false
wikipedialoader_init:
query: the query for wikipedia
lang: en
load_max_docs: 5000
load_all_available_meta: False
doc_content_chars_max: 4000,
A complete list of available document loader classes in LangChain can be found at: LangChain Community Document Loaders
🚫 Excluded Loaders
Some base classes or loaders that required additional configuration have been excluded and support for this will be included in future releases.
- Blob
- BlobLoader
- OracleTextSplitter
- OracleDocLoader
- TrelloLoaderExecute
- TwitterTweetLoader
- TrelloLoader
- GoogleApiYoutubeLoader
- GoogleApiClient
- DiscordChatLoader
- AssemblyAIAudioTranscriptLoader
- ArcGISLoader
For all other supported loaders, refer to the LangChain API reference linked above.
📚 Usage example
The following example demonstrates how to use the WikipediaLoaderWrapper template for loading documents from Wikipedia within Sinapsis. Below is the full YAML configuration, followed by a breakdown of each component.
configuration
agent:
name: my_test_agent
description: "Wikipedia loader example"
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: WikipediaLoaderWrapper
class_name: WikipediaLoaderWrapper
template_input: InputTemplate
attributes:
add_document_as_text_packet: false
wikipedialoader_init:
query: GenAI
lang: en
load_max_docs: 1
load_all_available_meta: false
doc_content_chars_max: 4000
To run, simply use:
sinapsis run name_of_the_config.yml
📙 Documentation
Documentation for this and other sinapsis packages is available on the sinapsis website
Tutorials for different projects within sinapsis are available at sinapsis tutorials page
🔍 License
This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.
For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.
Metadata
Release files for sinapsis_langchain_readers 0.1.9
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 | Actions |
|---|---|---|---|---|
| sinapsis_langchain_readers-0.1.9.tar.gz | 14.7 kB | Without provenance | Details for sinapsis_langchain_readers-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sinapsis_langchain_readers-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for sinapsis_langchain_readers-0.1.9-py3-none-any.whl |
Total release size: 30.5 kB
Release files / sinapsis_langchain_readers-0.1.9.tar.gz
| Download URL | sinapsis_langchain_readers-0.1.9.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd1d1d307a9080cd9cc361e792a5855fe76e069464cbaab9f60cab271ecd8433
|
|
BLAKE2b-256 checksum How to use checksums |
29faa922bab98d47372d5a3118ce98546877b56f3347808a35508f3e0c1d37ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.16
|
Release files / sinapsis_langchain_readers-0.1.9-py3-none-any.whl
| Download URL | sinapsis_langchain_readers-0.1.9-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19e15c17c8c755b982522dbf3f90d3a63007d8f12f80fa6808cb789300481f54
|
|
BLAKE2b-256 checksum How to use checksums |
eaefe44d43e05c0885759a41362c65b92c7aeffa0d3e2a2f32d86c653d0d648a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.16
|
Security for sinapsis_langchain_readers 0.1.9
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.