Skip to content

Commit

Permalink
Update marqo-document-store.md (#86)
Browse files Browse the repository at this point in the history
Add ToC
Update code examples
Remove the unnecessary header
  • Loading branch information
bilgeyucel authored Dec 14, 2023
1 parent 7f7dab2 commit 7176733
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions integrations/marqo-document-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 7176733

Please sign in to comment.