It will only take you a few minutes. This guide walks you through:✅ Set up authentication (API key)
✅ 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
Ready to get started? Run the examples below in your terminal (or open the notebook in Colab). All requests use the REST API with your API key in the X-API-KEY header.
Create the following two sample files in your local directory.File name data_science_research-2020-06.txt:
Copy
RavenPack Data Science researchers recommend the following stocks in June 2020Microsoft (NASDAQ: MSFT): Microsoft has been heavily investing in AI and cloud computing, which are key growth areas for the company.Datadog (NASDAQ: DDOG): Datadog is a leading provider of monitoring and analytics solutions for cloud-based applications.Oracle (NYSE: ORCL): Oracle is a major player in the enterprise software and cloud computing market.
File name soup_recipes-2020-06.txt:
Copy
We recommend making chicken noodle soup with homemade chicken stock
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. Use published_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
Copy
# Request a pre-signed URL (replace YOUR_API_KEY with your key)RESP=$(curl -s -X POST 'https://api.bigdata.com/contents/v1/documents' \ -H 'X-API-KEY: YOUR_API_KEY' \ -d '{ "file_name": "data_science_research-2020-06.txt", "published_ts": "2020-06-10T12:00:00Z", "tags": ["Data Science Research"], "share_with_org": false }')# Extract the URL (e.g. with jq) and PUT the fileURL=$(echo $RESP | jq -r '.url')curl -X PUT "$URL" --data-binary '@./data_science_research-2020-06.txt'
After each PUT, Bigdata enriches and indexes the document. The POST response includes an id (content ID); use it with Get document metadata to poll status until it is completed. See Upload your own content for full details.
Run a similarity search for “recommend stock” in June 2020. To search only your uploaded files, filter by category my_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):
You should see your two documents (e.g. 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.
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.