No project description provided
Project description
Unstructured Haystack
Unstructured Connectors for Haystack
This is an example Haystack 2.0 integration. It's an integration for Unstructured.io connectors. Please contribute 🚀
The current version has 2 available Unstructured connectors:
- Discord:
UnstructuredDiscordConnector
- GitHub:
UnstructuredGitHubConnector
- Google Drive:
UnstructuredGoogleDriveConnector
How to use in a Haystack 2.0 Pipeline
For example, you can write documents fetched from Discord using the UnstructuredDiscordConnector
:
from haystack.preview import Pipeline
from haystack.preview.components.writers import DocumentWriter
from unstructured_haystack import UnstructuredDiscordConnector
from chroma_haystack import ChromaDocumentStore
# Chroma is used in-memory so we use the same instances in the two pipelines below
document_store = ChromaDocumentStore()
connector = UnstructuredDiscordConnector(api_key="UNSTRUCTURED_API_KEY", discord_token="DISCORD_TOKEN")
indexing = Pipeline()
indexing.add_component("connector", connector)
indexing.add_component("writer", DocumentWriter(document_store))
indexing.connect("connector.documents", "writer.documents")
indexing.run({"connector": {"channels" : "993539071815200889", "period": 3, "output_dir" : "discord-example"}})
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for unstructured_haystack-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8998789b19ad60843527e18cbe78344c7917a5991d9650b0a8374332fc7b9c62 |
|
MD5 | d0fc7c6261a8397c8af3f42d1217ae8a |
|
BLAKE2b-256 | 3677e9457b006d11e3cba5889f70fc6618df12c585021c26d5f658e25b793b09 |
Close
Hashes for unstructured_haystack-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a57110fd3aeed5c8e6983a3a5cfae90ff6f0145b02c8700c358f5042e6d838ef |
|
MD5 | 0d21165289780a61aaa13b960fd8aa26 |
|
BLAKE2b-256 | e515b6400984aff59ce12b46fa4c40650f9f3ca60d09662e6fca01df7ae607c8 |