curl --request POST \
--url https://api.eddy.engineer/v1/knowledge.search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"bases": [
"<string>"
],
"k": 6
}
'import requests
url = "https://api.eddy.engineer/v1/knowledge.search"
payload = {
"query": "<string>",
"bases": ["<string>"],
"k": 6
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', bases: ['<string>'], k: 6})
};
fetch('https://api.eddy.engineer/v1/knowledge.search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/knowledge.search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'bases' => [
'<string>'
],
'k' => 6
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/knowledge.search"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"bases\": [\n \"<string>\"\n ],\n \"k\": 6\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/knowledge.search")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"bases\": [\n \"<string>\"\n ],\n \"k\": 6\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/knowledge.search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"bases\": [\n \"<string>\"\n ],\n \"k\": 6\n}"
response = http.request(request)
puts response.read_body{
"hits": [
{
"base": "<string>",
"base_id": "<string>",
"chunk_id": "<string>",
"heading": "<string>",
"match": "keyword",
"page": 123,
"score": 123,
"source_id": "<string>",
"text": "<string>",
"title": "<string>"
}
],
"mode": "hybrid",
"query": "<string>",
"searched": {
"bases": 123,
"chunks": 123,
"sources": 123
},
"vector_error": "<string>"
}Search Eddy's engineering knowledge base
Search Eddy’s engineering knowledge base: standards notes, design guides, material data and house rules that staff curate. Use it before relying on remembered values (a yield strength, a bolt grade, a clause of AS 4100 or ISO 286-2, a house design rule); cite the hit’s title and page. Hybrid: a lexical side (BM25 over passages of about 1,200 characters, with a tokenizer made for engineering text, so M8, 6061-T6, 286-2 and 0.2 match as written) and, when the deployment runs an embeddings server and Qdrant, a vector side; the two are fused by reciprocal rank and each hit says which side found it (match). query is 1..2000 characters, k the number of hits (1..20, default 6), bases an optional list of base ids from knowledge.bases. Live bases and enabled documents only; the same request returns the same bytes. mode says whether vectors took part; vector_error is set when they were configured but failed and the search fell back to keyword. Read-only and not charged.
curl --request POST \
--url https://api.eddy.engineer/v1/knowledge.search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"bases": [
"<string>"
],
"k": 6
}
'import requests
url = "https://api.eddy.engineer/v1/knowledge.search"
payload = {
"query": "<string>",
"bases": ["<string>"],
"k": 6
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', bases: ['<string>'], k: 6})
};
fetch('https://api.eddy.engineer/v1/knowledge.search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/knowledge.search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => '<string>',
'bases' => [
'<string>'
],
'k' => 6
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/knowledge.search"
payload := strings.NewReader("{\n \"query\": \"<string>\",\n \"bases\": [\n \"<string>\"\n ],\n \"k\": 6\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/knowledge.search")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"<string>\",\n \"bases\": [\n \"<string>\"\n ],\n \"k\": 6\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/knowledge.search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"<string>\",\n \"bases\": [\n \"<string>\"\n ],\n \"k\": 6\n}"
response = http.request(request)
puts response.read_body{
"hits": [
{
"base": "<string>",
"base_id": "<string>",
"chunk_id": "<string>",
"heading": "<string>",
"match": "keyword",
"page": 123,
"score": 123,
"source_id": "<string>",
"text": "<string>",
"title": "<string>"
}
],
"mode": "hybrid",
"query": "<string>",
"searched": {
"bases": 123,
"chunks": 123,
"sources": 123
},
"vector_error": "<string>"
}Body
Response
The best passages, with where each came from