Quick Start: From Zero to Your First Vector Query
This walkthrough takes you from a brand-new FoxNose account to your first Flux API call. In roughly ten minutes you will:
- Model a simple “Articles” collection in the dashboard.
- Publish an example article with vectorizable content.
- Expose the folder through a Flux API and mint a key.
- Call the Flux endpoint—first with a regular GET, then with a semantic (vector) search.
No SDKs required; everything is done through the dashboard and simple HTTP requests.
Prerequisites
- A FoxNose account (sign up at app.foxnose.net).
- Access to the FoxNose dashboard (email verified).
- A terminal with
curl, a REST client such as Postman/Hoppscotch, or simply a browser tab for the GET requests.
When you sign up you’re prompted to create or join a workspace. Projects and environments are created as part of the onboarding flow in the next steps. The environment key (e.g., 7c9h4pwu) appears under the Environment menu in the sidebar when you open an environment in the dashboard.
Step 1 – Add Your First Folder
In FoxNose, a Folder is the top-level container for a collection of resources (similar to a content type or table). Each folder has its own schema and entries.
- After signing in, you’ll land in your default Personal organization. Click New Project.
- Give the project a name (e.g.,
Demo Project). - When the project is created, FoxNose automatically provisions the first environment named
Production.
- Give the project a name (e.g.,
- Click into the new environment to open the Database section.
- Click Add Folder. In the dialog:
- Folder Name:
Articles - Alias:
articles(used in APIs) - Folder Type:
Collection - Content Type: leave as the default option
- Folder Name:
- Once the folder appears in the list, click it to open the detail panel. We’ll add fields next.
Step 2 – Define Fields
- With the folder selected, open the Collection Schema tab.
- Click Create Version; FoxNose creates the initial schema version and opens it automatically.
- Switch to the Schema tab inside the version editor.
- Click Add Field to open the form and configure:
- Field Name:
Title - Key:
title - Type:
String - Required: enable the checkbox
- Click Add Field at the bottom of the form to save.
- Field Name:
- Repeat the process to add a
summaryfield:- Field Name:
Summary - Key:
summary - Type:
Text - Required: enabled
- Vectorizable: enabled
- Click Add Field to save.
- Field Name:
- When both fields appear in the schema list, click Publish to finalize the schema. The version status changes from Draft to Published, which means you can start adding data right away.
Step 3 – Add Sample Content
- Return to the Database section and open the
Articlesfolder. - Switch to the Content tab inside the folder view.
- Click Add Resource to open the resource editor.
- Fill in the fields you defined in the schema for the first article:
- Title:
The Future of Electric Cars - Summary:
Automakers are investing heavily in solid-state batteries and new charging networks to push EV adoption.
- Title:
- Click Create and Publish to save the resource and mark it ready for delivery.
- Add a second resource for variety:
- Click Add Resource again.
- Title:
Breakthroughs in Renewable Energy - Summary:
Researchers are combining solar glass, grid storage, and offshore wind to stabilize renewable power supply across cities. - Click Create and Publish.
Step 4 – Create a Flux API and Connect the Folder
- Go to the Flux API section in the dashboard.
- Click Create API. In the dialog:
- API Name:
Demo API - URL Prefix:
demo-api - Require API key authentication: leave unchecked for this quick start
- Click Create API to save.
- API Name:
- After the API card appears, open it and switch to the Connected Folders tab, then click Connect Folder.
- In the dialog:
- Select Folder:
Articles - Access Methods: enable both
List/Search Resources (get_many)andGet Individual Resources (get_one) - Leave Authentication as Public for this quick start
- Click Connect Folder to save. The folder’s content is now accessible through the Flux endpoint.
- Select Folder:
- The folder now appears in the Connected Folders list. Click its name to view the auto-generated endpoints. You’ll see three cards (GET list, GET single, POST search). Click the row labeled GET /demo-api/articles—the full URL is copied to your clipboard.
Open a new browser tab, paste the copied URL (e.g., https://ENV_KEY.fxns.io/demo-api/articles), and press Enter. You should see the JSON listing of the two articles you created earlier. This confirms the folder is public and accessible.
Step 5 – Run a Vector (Semantic) Search
Remember how we marked the summary field as vectorizable? When you published the resources, FoxNose automatically generated embeddings for that field and stored them in a vector index. Semantic search is now available directly from the same GET endpoint—you just add query parameters.
Replace ENV_KEY with your actual Environment Key from the dashboard (Environment → Settings). Spaces in the query must be URL-encoded (%20) when using a browser.
curl "https://ENV_KEY.fxns.io/demo-api/articles\
?search_mode=vector\
&vector_search__query=advancements%20in%20electric%20vehicle%20batteries\
&vector_search__fields=summary\
&vector_search__top_k=10\
&vector_search__similarity_threshold=0.7"
Expected response (trimmed):
{
"limit": 50,
"results": [
{
"_sys": {
"key": "dw2qC5qRwxuZ",
"folder": "...",
...
},
"data": {
"title": "The Future of Electric Cars",
"summary": "Automakers are investing heavily..."
}
}
],
"metadata": {
"search_mode": "vector",
"vector_search_enabled": true
}
}
Even though the query never mentions “FoxNose” or the article title verbatim, Flux understands the semantic intent (“electric vehicle batteries”) and returns the relevant entry. Change vector_search__query to something like smart%20city%20renewable%20power—the second article (Breakthroughs in Renewable Energy) will surface because its summary discusses renewable infrastructure.
If you made the Flux API private, add an Authorization header per the authentication guide when calling the endpoint.
Where to Go Next
You now have a working knowledge API with semantic search. Here's how to take it further:
Connect to Your AI Application
FoxNose is designed to be the knowledge layer for LLM applications. The Flux API you just created can power:
- RAG pipelines — Retrieve relevant context for your LLM
- AI agents — Give agents access to your knowledge base as a tool
- Semantic search — Build intelligent search experiences
Check out our integration guides:
- Build a RAG Pipeline with Python → Step-by-step tutorial with LangChain and OpenAI
- Build a RAG Pipeline with JavaScript / Node.js → Step-by-step tutorial with LangChain.js and OpenAI
- LLM Integrations Overview → Architecture and best practices
Explore More Features
- Search & Filtering Guide → Master hybrid search, filters, and joins
- Schema & Fields → Design your content model for optimal search
- Secure Authentication → Switch to Secure Flux auth for production
Happy building!