Context Python SDK
⚡ Python SDK for accessing the Context API ⚡
from context import ContextSdk, ContextSdkConfig
sdk = ContextSdk(
ContextSdkConfig(
api_key="", # your API key
)
)
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