diff --git a/Makefile b/Makefile index 672d3234..3edd87ab 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # VERSION=$(shell git describe | sed 's/^v//') -VERSION=0.2.4 +VERSION=0.2.5 all: container diff --git a/docker-compose-azure.yaml b/docker-compose-azure.yaml index 09e7b45b..2a36a339 100644 --- a/docker-compose-azure.yaml +++ b/docker-compose-azure.yaml @@ -91,7 +91,7 @@ services: restart: on-failure:100 pdf-decoder: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "pdf-decoder" - "-p" @@ -99,7 +99,7 @@ services: restart: on-failure:100 chunker: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "chunker-recursive" - "-p" @@ -107,7 +107,7 @@ services: restart: on-failure:100 vectorize: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "embeddings-vectorize" - "-p" @@ -115,7 +115,7 @@ services: restart: on-failure:100 embeddings: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "embeddings-hf" - "-p" @@ -123,7 +123,7 @@ services: restart: on-failure:100 kg-extract-definitions: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "kg-extract-definitions" - "-p" @@ -131,7 +131,7 @@ services: restart: on-failure:100 kg-extract-relationships: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "kg-extract-relationships" - "-p" @@ -139,7 +139,7 @@ services: restart: on-failure:100 vector-write: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "vector-write-milvus" - "-p" @@ -149,7 +149,7 @@ services: restart: on-failure:100 graph-write: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "graph-write-cassandra" - "-p" @@ -159,7 +159,7 @@ services: restart: on-failure:100 llm: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "llm-azure-text" - "-p" @@ -171,7 +171,7 @@ services: restart: on-failure:100 graph-rag: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "graph-rag" - "-p" diff --git a/docker-compose-claude.yaml b/docker-compose-claude.yaml index 02862be6..58132986 100644 --- a/docker-compose-claude.yaml +++ b/docker-compose-claude.yaml @@ -91,7 +91,7 @@ services: restart: on-failure:100 pdf-decoder: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "pdf-decoder" - "-p" @@ -99,7 +99,7 @@ services: restart: on-failure:100 chunker: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "chunker-recursive" - "-p" @@ -107,7 +107,7 @@ services: restart: on-failure:100 vectorize: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "embeddings-vectorize" - "-p" @@ -115,7 +115,7 @@ services: restart: on-failure:100 embeddings: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "embeddings-hf" - "-p" @@ -123,7 +123,7 @@ services: restart: on-failure:100 kg-extract-definitions: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "kg-extract-definitions" - "-p" @@ -131,7 +131,7 @@ services: restart: on-failure:100 kg-extract-relationships: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "kg-extract-relationships" - "-p" @@ -139,7 +139,7 @@ services: restart: on-failure:100 vector-write: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "vector-write-milvus" - "-p" @@ -149,7 +149,7 @@ services: restart: on-failure:100 graph-write: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "graph-write-cassandra" - "-p" @@ -159,7 +159,7 @@ services: restart: on-failure:100 llm: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "llm-claude-text" - "-p" @@ -169,7 +169,7 @@ services: restart: on-failure:100 graph-rag: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "graph-rag" - "-p" diff --git a/docker-compose-ollama.yaml b/docker-compose-ollama.yaml index 16fe718b..7db0e4d0 100644 --- a/docker-compose-ollama.yaml +++ b/docker-compose-ollama.yaml @@ -91,7 +91,7 @@ services: restart: on-failure:100 pdf-decoder: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "pdf-decoder" - "-p" @@ -99,7 +99,7 @@ services: restart: on-failure:100 chunker: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "chunker-recursive" - "-p" @@ -107,7 +107,7 @@ services: restart: on-failure:100 vectorize: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "embeddings-vectorize" - "-p" @@ -115,7 +115,7 @@ services: restart: on-failure:100 embeddings: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "embeddings-hf" - "-p" @@ -125,7 +125,7 @@ services: restart: on-failure:100 kg-extract-definitions: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "kg-extract-definitions" - "-p" @@ -133,7 +133,7 @@ services: restart: on-failure:100 kg-extract-relationships: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "kg-extract-relationships" - "-p" @@ -141,7 +141,7 @@ services: restart: on-failure:100 vector-write: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "vector-write-milvus" - "-p" @@ -151,7 +151,7 @@ services: restart: on-failure:100 graph-write: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "graph-write-cassandra" - "-p" @@ -161,7 +161,7 @@ services: restart: on-failure:100 llm: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "llm-ollama-text" - "-p" @@ -171,7 +171,7 @@ services: restart: on-failure:100 graph-rag: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "graph-rag" - "-p" diff --git a/docker-compose-vertexai.yaml b/docker-compose-vertexai.yaml index b0b5c23d..62a44f3c 100644 --- a/docker-compose-vertexai.yaml +++ b/docker-compose-vertexai.yaml @@ -91,7 +91,7 @@ services: restart: on-failure:100 pdf-decoder: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "pdf-decoder" - "-p" @@ -99,7 +99,7 @@ services: restart: on-failure:100 chunker: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "chunker-recursive" - "-p" @@ -107,7 +107,7 @@ services: restart: on-failure:100 vectorize: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "embeddings-vectorize" - "-p" @@ -115,7 +115,7 @@ services: restart: on-failure:100 embeddings: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "embeddings-hf" - "-p" @@ -123,7 +123,7 @@ services: restart: on-failure:100 kg-extract-definitions: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "kg-extract-definitions" - "-p" @@ -131,7 +131,7 @@ services: restart: on-failure:100 kg-extract-relationships: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "kg-extract-relationships" - "-p" @@ -139,7 +139,7 @@ services: restart: on-failure:100 vector-write: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "vector-write-milvus" - "-p" @@ -149,7 +149,7 @@ services: restart: on-failure:100 graph-write: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "graph-write-cassandra" - "-p" @@ -159,7 +159,7 @@ services: restart: on-failure:100 llm: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "llm-vertexai-text" - "-p" @@ -173,7 +173,7 @@ services: restart: on-failure:100 graph-rag: - image: docker.io/trustgraph/trustgraph-flow:0.2.4 + image: docker.io/trustgraph/trustgraph-flow:0.2.5 command: - "graph-rag" - "-p" diff --git a/setup.py b/setup.py index 6bf25457..43494d06 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ import os with open("README.md", "r") as fh: long_description = fh.read() -version = "0.2.4" +version = "0.2.5" setuptools.setup( name="trustgraph", diff --git a/trustgraph/llm/azure_text/llm.py b/trustgraph/llm/azure_text/llm.py index 252be0b0..dba4de66 100755 --- a/trustgraph/llm/azure_text/llm.py +++ b/trustgraph/llm/azure_text/llm.py @@ -32,10 +32,12 @@ class Processor: output_queue=default_output_queue, subscriber=default_subscriber, log_level=LogLevel.INFO, - endpoint, - token, + endpoint=None, + token=None, ): + self.client = None + self.client = pulsar.Client( pulsar_host, logger=pulsar.ConsoleLogger(log_level.to_pulsar())