Skip to content

context-labs/context-sdk-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Context Python SDK

⚡ Python SDK for accessing the Context API

How to use it

Instantiate the SDK

from context import ContextSdk, ContextSdkConfig

sdk = ContextSdk(
    ContextSdkConfig(
        api_key="", # your API key
    )
)

Search for documents/snippets

bot_id = "k7rB5_3JT"
query = "How can I get started with Helius?"
top_k = 1
result = self.sdk.search(bot_id, query, top_k)

print(result) # will be a list of snippets

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages