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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fcfbf78f9da2e0f00a61de265542f7c95d9fd9b641642556323a370c07580f3 |
|
MD5 | 545e71cd5785126ce1ef419be5e97d61 |
|
BLAKE2b-256 | 59d0d419111ae8ea9fb64fa5ac24d0e20d291917e89b2ef12f0bcde2de20b5e2 |
Close
Hashes for unstructured_haystack-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 810babb4a3bb61b4013fece85b6cc83991bf67408e5ec1757e8ff8266673525d |
|
MD5 | f3dccc703c1c64fc83fb7b2b167c6d32 |
|
BLAKE2b-256 | 830b0dc7c91c11250f3c586ed786f9eca6362c3df7d940b0b762ee35ce33a4e8 |