Upload
Requirements
The upload accepts a list of dictionaries (JSON records format). Our only requirement is a plain-text field named doc which contains the text you want to analyze. You can optionally provide a doc_id identifier for each document; if you do not provide one, we will generate one for you.
Integrations
If you do not have your own data to upload, you can also leverage our integrations to build your own indices:
Code Example
from sturdystats.index import Index
# Create or access an existing index
= Index(name="my_index", API_key="your_api_key")
index
# Upload Documents
= [{
docs "doc": "Operator: Welcome, everyone. Thank you for standing by for the Alphabet Fourth Quarter 2023 Earnings Conference Call ...",
"date": "2024-01-30",
"quarter": "2024Q1",
"author": "GOOG"
},
...
]
index.upload(docs)
## Train Index
=True)
index.train(fast
# Query documents
= index.topicSearch() topic_df
In order to upload your own data, you must generate an API key.