From 717673301e45f3d3f9fc2d2a1cbee2a7e568072c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bilge=20Y=C3=BCcel?= Date: Thu, 14 Dec 2023 17:58:11 +0300 Subject: [PATCH] Update marqo-document-store.md (#86) Add ToC Update code examples Remove the unnecessary header --- integrations/marqo-document-store.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/integrations/marqo-document-store.md b/integrations/marqo-document-store.md index 4f04215a..fbfa53b6 100644 --- a/integrations/marqo-document-store.md +++ b/integrations/marqo-document-store.md @@ -12,8 +12,16 @@ type: Document Store report_issue: https://github.com/marqo-ai/marqo-haystack/issues logo: /logos/marqo.png version: Haystack 2.0 +toc: true --- -# Marqo Document Store for Haystack + +### **Table of Contents** +- [Overview](#overview) +- [Installation](#installation) +- [Usage](#usage) + +## Overview + This integration allows you to use [Marqo DB](https://www.marqo.ai/) as the document store for your Haystack pipelines. This page provides simple instructions on how to start it up and how to initialize a `MarqoDocumentStore` that can be used in any Haystack 2.0 pipeline. ## Installation @@ -76,8 +84,8 @@ document_store = MarqoDocumentStore( To write documents to `MarqoDocumentStore`, create an indexing pipeline. ```python -from haystack.preview.components.file_converters import TextFileToDocument -from haystack.preview.components.writers import DocumentWriter +from haystack.components.converters import TextFileToDocument +from haystack.components.writers import DocumentWriter indexing = Pipeline() indexing.add_component("converter", TextFileToDocument())