diff --git a/CHANGELOG.md b/CHANGELOG.md index c72a02f45..896e763ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.12.1-dev14 +## 0.12.1-dev15 ### Enhancements @@ -13,6 +13,7 @@ * **Add "basic" chunking to ingest CLI.** Add options to ingest CLI allowing access to the new "basic" chunking strategy and overlap options. * **Make Elasticsearch Destination connector arguments optional.** Elasticsearch Destination connector write settings are made optional and will rely on default values when not specified. * **Normalize Salesforce artifact names.** Introduced file naming pattern present in other connectors to Salesforce connector. +* **Install Kapa AI chatbot.** Added Kapa.ai website widget on the documentation. ### Features * **MongoDB Source Connector.** New source connector added to all CLI ingest commands to support downloading/partitioning files from MongoDB. diff --git a/docs/source/_static/custom.css b/docs/source/_static/custom.css new file mode 100644 index 000000000..d2b01bcec --- /dev/null +++ b/docs/source/_static/custom.css @@ -0,0 +1,9 @@ +#kapa-widget-container { + z-index: 10000 !important; + position: absolute !important; +} + +.mantine-Modal-root { + z-index: 10000; + position: absolute; +} \ No newline at end of file diff --git a/docs/source/_static/custom.js b/docs/source/_static/custom.js new file mode 100644 index 000000000..d84b62f65 --- /dev/null +++ b/docs/source/_static/custom.js @@ -0,0 +1,11 @@ +document.addEventListener("DOMContentLoaded", function() { + var script = document.createElement("script"); + script.src = "https://widget.kapa.ai/kapa-widget.bundle.js"; + script.setAttribute("data-website-id", "8ae12a97-484a-4704-8127-b6f17ebc6bcf"); + script.setAttribute("data-project-name", "Unstructured"); + script.setAttribute("data-project-color", "#0CDDF8"); + script.setAttribute("data-project-logo", "https://raw.githubusercontent.com/Unstructured-IO/unstructured/main/img/unstructured_logo.png"); + script.setAttribute("data-modal-example-questions", "Are OpenAI embeddings supported?,How can I partition a document?,How do I use the library with Docker?,Can I ingest data from Box?"); + script.async = true; + document.head.appendChild(script); +}); \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index b5115568e..e00c69134 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -135,3 +135,8 @@ html_theme_options = { "sidebar-caption-space-above": "0", }, } + +# kapa.ai integration +html_static_path = ["_static"] +html_js_files = ["custom.js"] +html_css_files = ["custom.css"] diff --git a/docs/source/ingest/destination_connectors.rst b/docs/source/ingest/destination_connectors.rst index 6c3ca959c..bc60e3fd5 100644 --- a/docs/source/ingest/destination_connectors.rst +++ b/docs/source/ingest/destination_connectors.rst @@ -18,6 +18,7 @@ in our community `Slack. `_ destination_connectors/gcs destination_connectors/mongodb destination_connectors/pinecone + destination_connectors/opensearch destination_connectors/qdrant destination_connectors/s3 destination_connectors/sql diff --git a/docs/source/ingest/destination_connectors/elasticsearch.rst b/docs/source/ingest/destination_connectors/elasticsearch.rst index 8a85a8bec..1ecf2d09c 100644 --- a/docs/source/ingest/destination_connectors/elasticsearch.rst +++ b/docs/source/ingest/destination_connectors/elasticsearch.rst @@ -36,7 +36,7 @@ Vector Search Sample Mapping To make sure the schema of the index matches the data being written to it, a sample mapping json can be used. - .. literalinclude:: ./data/elasticsearch_elements_mapping.json + .. literalinclude:: ./data/elasticsearch_elements_mappings.json :language: json :linenos: :caption: Object description \ No newline at end of file diff --git a/docs/source/ingest/destination_connectors/opensearch.rst b/docs/source/ingest/destination_connectors/opensearch.rst index 3eee2b03d..727126137 100644 --- a/docs/source/ingest/destination_connectors/opensearch.rst +++ b/docs/source/ingest/destination_connectors/opensearch.rst @@ -36,7 +36,7 @@ Vector Search Sample Mapping To make sure the schema of the index matches the data being written to it, a sample mapping json can be used. - .. literalinclude:: ./data/opensearch_elements_mapping.json + .. literalinclude:: ./data/opensearch_elements_mappings.json :language: json :linenos: :caption: Object description \ No newline at end of file diff --git a/docs/source/ingest/source_connectors.rst b/docs/source/ingest/source_connectors.rst index dae4e17cc..184d0e1d6 100644 --- a/docs/source/ingest/source_connectors.rst +++ b/docs/source/ingest/source_connectors.rst @@ -26,6 +26,7 @@ in our community `Slack. `_ source_connectors/mongodb source_connectors/notion source_connectors/onedrive + source_connectors/opensearch source_connectors/outlook source_connectors/reddit source_connectors/s3 diff --git a/unstructured/__version__.py b/unstructured/__version__.py index 9b45f72ee..c5219e71f 100644 --- a/unstructured/__version__.py +++ b/unstructured/__version__.py @@ -1 +1 @@ -__version__ = "0.12.1-dev14" # pragma: no cover +__version__ = "0.12.1-dev15" # pragma: no cover