marqo-ai / marqo-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting up the app for the first time

  1. Duplicate contents of .env.template to a new .env file and replace the values accordingly.

  2. Run ./setup.sh

Running the app in development

  1. Run ./run.sh

Sample curl requests

Simple Wiki

curl --request POST \
            --url https://yourendpoint/indexes/yourindex/search \
            --header 'Content-Type: application/json' \
            --header 'X-API-Key: secretkey' \
            --data '{
                    "q": "Space hippo",
                "searchableAttributes": ["title", "content"],
                "limit": 30,
                "showHighlights": true,
                "filter": "*:*",
                "searchMethod": "TENSOR"
            }'

About


Languages

Language:TypeScript 76.5%Language:Python 17.7%Language:CSS 2.9%Language:JavaScript 1.8%Language:HTML 0.8%Language:Shell 0.3%