This is the Python SDK for Lexy. For detailed documentation and tutorials, see the Lexy documentation.
from lexy_py import LexyClient
lx = LexyClient()
lx.add_documents([
{"content": "This is a test document"},
{"content": "This is another one!"},
])
lx.query_index("test query", index_id="default_text_embeddings", k=5)