المحرك الدلالي V2 Semantic Core V2

Embedding

توليد متجهات عالية الأبعاد للبحث الدلالي والتجميع وخطوط RAG. Generate high-dimensional vector embeddings for semantic search, clustering and RAG pipelines.

تجربة حية Live Playground

System Ready

التكلفةPricing

Premium
يتم تفعيلها عند الاشتراكActivated with subscription

1 كيفية استخدام التكامل How to use Integration

import requests

url = "https://orgteh.com/api/tools/execute/orgteh-semantic-embed"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
payload = {
    "text_input": "value",
    "truncate": "NONE"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class OrgtehToolClient {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();

        String jsonBody = "{"
            + "\"text_input\": \"value\" + ","
            + "\"truncate\": \"NONE\";


        HttpRequest request = HttpRequest.newBuilder()
            .uri(URI.create("https://orgteh.com/api/tools/execute/orgteh-semantic-embed"))
            .header("Authorization", "Bearer YOUR_API_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(jsonBody))
            .build();

        HttpResponse<String> response = client.send(request, 
            HttpResponse.BodyHandlers.ofString());

        System.out.println(response.body());
    }
}
curl -X POST https://orgteh.com/api/tools/execute/orgteh-semantic-embed \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text_input": "value",
    "truncate": "NONE"
  }'

# أو باستخدام HTTPie
http POST https://orgteh.com/api/tools/execute/orgteh-semantic-embed \
  Authorization:"Bearer YOUR_API_KEY" \
  text_input="value" \
  truncate="NONE"

2 التكامل مع الذكاء الاصطناعي AI Integration

استخدم هذا الكود لربط الأداة بنماذج Orgteh مباشرة Use this code to connect the tool with Orgteh models directly

import requests

# Step 1: Execute Orgteh Tool
tool_url = "https://orgteh.com/api/tools/execute/orgteh-semantic-embed"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}
tool_payload = {
    "text_input": "value",
    "truncate": "NONE",
}

tool_response = requests.post(tool_url, headers=headers, json=tool_payload)
tool_result = tool_response.json()

# Step 2: Send result to Orgteh AI Model
chat_url = "https://orgteh.com/v1/chat/completions"
chat_payload = {
    "model": "deepseek-ai/deepseek-v3.2",
    "messages": [
        {"role": "system", "content": "You have access to tool results."},
        {"role": "user", "content": f"Tool result: {tool_result}"}
    ]
}

ai_response = requests.post(chat_url, headers=headers, json=chat_payload)
result = ai_response.json()
print(result['choices'][0]['message']['content'])
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class OrgtehAIIntegration {
    public static void main(String[] args) throws Exception {
        HttpClient client = HttpClient.newHttpClient();

        // Step 1: Call Orgteh Tool
        String toolBody = "{"
            + "\"text_input\": \"value\" + ","
            + "\"truncate\": \"NONE\";


        HttpRequest toolRequest = HttpRequest.newBuilder()
            .uri(URI.create("https://orgteh.com/api/tools/execute/orgteh-semantic-embed"))
            .header("Authorization", "Bearer YOUR_API_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(toolBody))
            .build();

        HttpResponse<String> toolResponse = client.send(toolRequest, 
            HttpResponse.BodyHandlers.ofString());

        // Step 2: Send to Orgteh AI Model
        String aiBody = "{"
            + "\"model\": \"deepseek-ai/deepseek-v3.2\","
            + "\"messages\": [{\"role\": \"user\", \"content\": \"Process: " 
            + toolResponse.body() + "\"}]"
            + "}";

        HttpRequest aiRequest = HttpRequest.newBuilder()
            .uri(URI.create("https://orgteh.com/v1/chat/completions"))
            .header("Authorization", "Bearer YOUR_API_KEY")
            .header("Content-Type", "application/json")
            .POST(HttpRequest.BodyPublishers.ofString(aiBody))
            .build();

        HttpResponse<String> aiResponse = client.send(aiRequest, 
            HttpResponse.BodyHandlers.ofString());

        System.out.println(aiResponse.body());
    }
}
# Step 1: Execute Orgteh Tool
curl -X POST https://orgteh.com/api/tools/execute/orgteh-semantic-embed \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text_input": "value",
    "truncate": "NONE"
  }'

# Step 2: Send result to Orgteh AI Model
curl -X POST https://orgteh.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-ai/deepseek-v3.2",
    "messages": [{"role": "user", "content": "Analyze this tool output"}]
  }'

Orgteh Assistant

Online
Hello! I am Orgteh Assistant. How can I help you?