mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
Use native runtimes for flow entrypoints
This commit is contained in:
parent
54fc21b38d
commit
74955d6041
38 changed files with 233 additions and 134 deletions
|
|
@ -1,6 +1,3 @@
|
|||
import { run } from "../packages/flow/src/chunking/service.js";
|
||||
import { runMain } from "../packages/flow/src/chunking/service.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Chunking service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { run } from "../packages/flow/src/query/embeddings/qdrant-doc-service.js";
|
||||
import { runMain } from "../packages/flow/src/query/embeddings/qdrant-doc-service.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Document embeddings query service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { run } from "../packages/flow/src/embeddings/ollama.js";
|
||||
import { runMain } from "../packages/flow/src/embeddings/ollama.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Embeddings service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { run } from "../packages/flow/src/extract/knowledge-extract.js";
|
||||
import { runMain } from "../packages/flow/src/extract/knowledge-extract.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Knowledge extract service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
* GATEWAY_PORT (default: 8088)
|
||||
* GATEWAY_SECRET (optional)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/gateway/server.js";
|
||||
import { runMain } from "../packages/flow/src/gateway/server.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Gateway failed to start:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { run } from "../packages/flow/src/query/embeddings/qdrant-graph-service.js";
|
||||
import { runMain } from "../packages/flow/src/query/embeddings/qdrant-graph-service.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Graph embeddings query service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { run } from "../packages/flow/src/storage/embeddings/graph-embeddings-service.js";
|
||||
import { runMain } from "../packages/flow/src/storage/embeddings/graph-embeddings-service.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Graph embeddings store service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -10,9 +10,6 @@
|
|||
* AZURE_MODEL (default: gpt-4o)
|
||||
* AZURE_API_VERSION (default: 2024-12-01-preview)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/model/text-completion/azure-openai.js";
|
||||
import { runMain } from "../packages/flow/src/model/text-completion/azure-openai.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Azure OpenAI LLM service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -7,9 +7,6 @@
|
|||
* NATS_URL (default: nats://localhost:4222)
|
||||
* CLAUDE_KEY (required)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/model/text-completion/claude.js";
|
||||
import { runMain } from "../packages/flow/src/model/text-completion/claude.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Claude LLM service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
* MISTRAL_TOKEN (required)
|
||||
* MISTRAL_MODEL (default: ministral-8b-latest)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/model/text-completion/mistral.js";
|
||||
import { runMain } from "../packages/flow/src/model/text-completion/mistral.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Mistral LLM service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@
|
|||
* OPENAI_COMPAT_KEY (default: sk-no-key-required)
|
||||
* OPENAI_COMPAT_MODEL (default: default)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/model/text-completion/openai-compatible.js";
|
||||
import { runMain } from "../packages/flow/src/model/text-completion/openai-compatible.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("OpenAI-compatible LLM service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
* OPENAI_TOKEN (required)
|
||||
* OPENAI_BASE_URL (optional)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/model/text-completion/openai.js";
|
||||
import { runMain } from "../packages/flow/src/model/text-completion/openai.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("OpenAI LLM service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -6,13 +6,6 @@
|
|||
* Env:
|
||||
* NATS_URL (default: nats://localhost:4222)
|
||||
*/
|
||||
import { run as runMcpToolService } from "../packages/flow/src/agent/mcp-tool/index.js";
|
||||
import { runMain } from "../packages/flow/src/agent/mcp-tool/index.js";
|
||||
|
||||
async function run(): Promise<void> {
|
||||
await runMcpToolService();
|
||||
}
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("MCP tool service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -8,9 +8,6 @@
|
|||
* OLLAMA_URL (default: http://localhost:11434)
|
||||
* OLLAMA_MODEL (default: qwen2.5:0.5b)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/model/text-completion/ollama.js";
|
||||
import { runMain } from "../packages/flow/src/model/text-completion/ollama.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Ollama LLM service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
* Env:
|
||||
* NATS_URL (default: nats://localhost:4222)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/decoding/pdf-decoder.js";
|
||||
import { runMain } from "../packages/flow/src/decoding/pdf-decoder.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("PDF decoder service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@
|
|||
* Env:
|
||||
* NATS_URL (default: nats://localhost:4222)
|
||||
*/
|
||||
import { run } from "../packages/flow/src/prompt/template.js";
|
||||
import { runMain } from "../packages/flow/src/prompt/template.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Prompt service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { run } from "../packages/flow/src/query/triples/falkordb-service.js";
|
||||
import { runMain } from "../packages/flow/src/query/triples/falkordb-service.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Triples query service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
import { run } from "../packages/flow/src/storage/triples/falkordb-service.js";
|
||||
import { runMain } from "../packages/flow/src/storage/triples/falkordb-service.js";
|
||||
|
||||
run().catch((err) => {
|
||||
console.error("Triples store service failed:", err);
|
||||
process.exit(1);
|
||||
});
|
||||
runMain();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue