Skip to content

Semantic Search

POST /api/v1/knowledge/search

Semantic search uses 3072-dimensional Gemini embeddings with cosine similarity. Use full sentences — it understands meaning, not just keywords.

Terminal window
curl -X POST -H "X-API-Key: $KEY" \
-H "Content-Type: application/json" \
"https://api.marc27.com/api/v1/knowledge/search" \
-d '{"query": "materials that resist creep at high temperature for turbine applications", "limit": 5}'
[
{
"doc_id": "Ni-based Superalloy",
"content": "Topic: Ni-based Superalloy. Type: TOP",
"similarity": 0.752,
"metadata": {
"entity_type": "TOP",
"source": "embed-graph"
}
}
]
Use CaseMethod
Exact entity nameGraph Search (?q=Inconel+718)
Natural language questionSemantic Search
Multi-concept explorationResearch Mode
Specific property lookupProperty Search

Store your own text in the vector database:

Terminal window
curl -X POST -H "X-API-Key: $KEY" \
-H "Content-Type: application/json" \
"https://api.marc27.com/api/v1/knowledge/embed" \
-d '{"doc_id": "my-paper-1", "content": "Abstract text here..."}'