✅ Create two sample files to upload
✅ Upload private files via the Content API
✅ Query bigdata.com with the Search API
Private & Secure: No LLM training on your data
X-API-KEY header.
Set up authentication
Send your API key in theX-API-KEY header on every request. See Authentication for details. Replace YOUR_API_KEY in the examples with your key.
Create two sample files to upload
Create the following two sample files in your local directory. File namedata_science_research-2020-06.txt:
soup_recipes-2020-06.txt:
Upload private files (Content API)
Upload the two files using the Content API: request a pre-signed URL and document id with POST /contents/v1/documents, then PUT the file to that URL. Bigdata enriches each document (extraction, structure and annotation of the content) and indexes it, making it available for Search and Research Agent. Usepublished_ts to set the document date (so we can narrow search to June 2020) and tags to filter by type later.
1. Request upload URL and upload the first file
status until it is completed. See Upload your own content for full details.
Query bigdata.com
Run a similarity search for “recommend stock” in June 2020. To search only your uploaded files, filter by categorymy_files.
Use POST /v1/search with a query that has text (for similarity) and filters for timestamp and document category. To restrict results to your uploaded files, set category to my_files.
Similarity search in June 2020 (all sources):
data_science_research-2020-06.txt and soup_recipes-2020-06.txt) in the results.
Filter by tag (e.g. only “Data Science Research”):
Use the tag filter with any_of to restrict to documents that have a specific tag. See Search API: tag filter.
Summary
Congratulations! You have uploaded private files with the Content API and queried them via the Search API. Click on the playgrounds below, use the source selector and filter by My Files to test and retrieve your uploaded content.Search Service Playground
Search across your private content and other sources. In the playground, open the source selector and choose My Files to limit results to your uploaded documents.
Research Agent Playground
Run research over your private content and real-time data. In the playground, use the source selector and filter by My Files to ground answers in your documents.