
Quickstart
Getting started with NeoAthena is incredibly simple:
Create your account - Sign up here
Generate an API key - Find this in your account settings
Upload your first document - Either through the Web UI or using our API/SDK
Start retrieving information - Query your documents using natural language
Using the Python SDK
After completing the steps above, you can immediately start using NeoAthena with just a few lines of code:
Prerequisites
Installation
Install our Python package:
pip install neoathena
Quick Implementation
from neoathena import NeoAthenaClient
# Initialize client with your API key
client = NeoAthenaClient(api_key="your-api-key")
# Upload a document to a collection
client.upload_to_collection(
collection_name="my_first_collection",
filepath="path/to/document.pdf"
)
# Retrieve information using natural language
results = client.retrieve_from_collection(
collection_name="my_first_collection",
query="What are the key points in this document?",
top_k=3
)
# Print the results
print(results)
Next Steps
Last updated
Was this helpful?