Skip to content

marqo-ai/marqo-instantapi

Repository files navigation

Marqo-InstantAPI [In Development]

marqo-instantapi is a Python package that integrates Marqo with Instant API, enabling users to create, index, and search documents efficiently with multimodal capabilities. This package simplifies the process of extracting data from web pages and indexing it in Marqo for fast and accurate searches.

Prerequisites

Installation

To get started, you need to run the Marqo container:

docker run --name marqo -it -p 8882:8882 marqoai/marqo:latest

Install the required dependencies:

pip install -r requirements.txt

Then, install the marqo-instantapi package:

pip install .

Running the Example

To run the example, you need to set the INSTANTAPI_KEY environment variable. You can do this by creating a .env file in the root directory of the project and adding the following line:

INSTANTAPI_KEY=your_instantapi_key

Then, run the example script:

python example.py

Creating documentation

Eun the following command to locally build the documentation:

sphinx-build -b html docs/source docs/build

Running tests

To run tests use pytest:

python -m pytest

To run the integration tests as well add the flag --integration:

python -m pytest --integration

Formatting code

We use the black code formatter. To format the code run:

black .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages