Upload and search your content
It will only take you 5 minutes and will guide you through:
✅ Install bigdata-client
package
✅ Authenticate to bigdata.com
✅ Create two sample files to upload
✅ Upload private files
✅ Query bigdata.com
Ready to get started? Let’s dive in!
Install bigdata-client
package
Follow Prerequisites instructions to set up the require environment.
Authenticate to bigdata.com
Because you have already set your credentials in the environment following the Prerequisites step, Bigdata constructor will read them.
Create two samples files to upload
Create the following two sample files in your local directory.
File name data_science_research-2020-06.txt
:
File name soup_recipes-2020-06.txt
:
Upload private files
We will upload two files and use the parameter provider_data_utc
to
inform bigdata about their creation date. This will modify the document
published date, allowing us to better assign a reporting date to
detected events.
Output:
The first file was successfully analysed and indexed into the bigdata.com vector database.
As you might have many type of private documents, you could also assign tags to each type and use them during the search
Output:
Let’s upload the second file
Output:
and tag as Cooking recipes
Output:
Query bigdata.com
Let’s do a Similarity
search with the text recommend stock
in the
month of June 2020:
Output:
The private files got indexed but there are many other files, let’s narrow the date range to only 2 seconds around the publication timestamp of our private files:
Output:
🎉We see them both!
If we only want to get insights from our private files, then we can set
the scope
to DocumentType.FILES
.
Output:
We can even use tags to focus on specfic type of private files, for
instance Data Science Research
Output:
Summary
Congratulations! 🎉 You have successfully uploaded private files and retrieve insights about them amongst millions of other documents.
The following pages are related to private file uploading, managing tags and search using the tag query filter:
- Upload your own content: It describes all supported parameters and methods to manage private files.
- Batch file upload: It contains a script to help your organization quickly upload all private files.
- FileTag: It describes the
FileTag
query filter. - Query operators: It describes the
supported query operators:
&
,|
,~
,All
andAny
.