Skip to content

Latest commit

 

History

History

sdk-python

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Lexy Python SDK

This is the Python SDK for Lexy. For detailed documentation and tutorials, see the Lexy documentation.

Usage

Init client

from lexy_py import LexyClient

lx = LexyClient()

Add documents

lx.add_documents([
    {"content": "This is a test document"},
    {"content": "This is another one!"},
])

Query index

lx.query_index("test query", index_id="default_text_embeddings", k=5)