vector-databases-poc/marqo/fetch-results.py
2023-04-13 06:32:53 +00:00

11 lines
213 B
Python

import marqo
mq = marqo.Client(url='http://localhost:8882')
results = mq.index("my-first-index").search(
q="What is the best outfit to wear on the moon?", searchable_attributes=["Title", "Description"]
)