trustgraph-flow 0.20.0__tar.gz → 0.20.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/PKG-INFO +2 -2
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/setup.py +19 -18
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/agent/react/service.py +0 -29
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/agent/react/tools.py +1 -1
- trustgraph-flow-0.20.2/trustgraph/flow_version.py +1 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/azure/llm.py +5 -15
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/azure_openai/llm.py +14 -18
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/claude/llm.py +12 -22
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/cohere/llm.py +5 -17
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/googleaistudio/llm.py +16 -22
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/llamafile/llm.py +1 -20
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/ollama/llm.py +1 -20
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/openai/llm.py +6 -20
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph_flow.egg-info/requires.txt +1 -0
- trustgraph-flow-0.20.0/trustgraph/flow_version.py +0 -1
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/README.md +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/api-gateway +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/chunker-token +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/document-embeddings +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/document-rag +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/graph-rag +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/metering +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/object-extract-row +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/prompt-generic +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/prompt-template +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/run-processing +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/setup.cfg +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/document_rag.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/extract/object/row/extract.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/agent.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/dbpedia.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/document_embeddings_load.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/document_embeddings_stream.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/document_load.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/document_rag.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/embeddings.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/encyclopedia.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/endpoint.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/graph_embeddings_load.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/graph_embeddings_query.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/graph_embeddings_stream.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/graph_rag.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/internet_search.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/metrics.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/mux.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/prompt.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/publisher.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/requestor.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/sender.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/serialize.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/socket.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/subscriber.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/text_completion.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/text_load.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/triples_load.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/triples_query.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/gateway/triples_stream.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/graph_rag.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/metering/pricelist.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/generic/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/generic/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/generic/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/template/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/template/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph_flow.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 0.20.
|
3
|
+
Version: 0.20.2
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.2.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -35,32 +35,33 @@ setuptools.setup(
|
|
35
35
|
download_url = "https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v" + version + ".tar.gz",
|
36
36
|
install_requires=[
|
37
37
|
"trustgraph-base>=0.20,<0.21",
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
38
|
+
"aiohttp",
|
39
|
+
"anthropic",
|
40
|
+
"cassandra-driver",
|
41
|
+
"cohere",
|
42
|
+
"cryptography",
|
43
|
+
"falkordb",
|
44
|
+
"google-generativeai",
|
45
|
+
"ibis",
|
46
|
+
"jsonschema",
|
41
47
|
"langchain",
|
48
|
+
"langchain-community",
|
42
49
|
"langchain-core",
|
43
50
|
"langchain-text-splitters",
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
51
|
+
"neo4j",
|
52
|
+
"openai",
|
53
|
+
"pinecone[grpc]",
|
54
|
+
"prometheus-client",
|
47
55
|
"pulsar-client",
|
56
|
+
"pymilvus",
|
48
57
|
"pypdf",
|
58
|
+
"pyyaml",
|
49
59
|
"qdrant-client",
|
60
|
+
"rdflib",
|
61
|
+
"requests",
|
50
62
|
"tabulate",
|
51
|
-
"anthropic",
|
52
|
-
"pyyaml",
|
53
|
-
"prometheus-client",
|
54
|
-
"cohere",
|
55
|
-
"openai",
|
56
|
-
"neo4j",
|
57
63
|
"tiktoken",
|
58
|
-
"
|
59
|
-
"ibis",
|
60
|
-
"jsonschema",
|
61
|
-
"aiohttp",
|
62
|
-
"pinecone[grpc]",
|
63
|
-
"falkordb",
|
64
|
+
"urllib3",
|
64
65
|
],
|
65
66
|
scripts=[
|
66
67
|
"scripts/agent-manager-react",
|
@@ -14,8 +14,6 @@ from ... schema import AgentRequest, AgentResponse, AgentStep
|
|
14
14
|
from ... schema import agent_request_queue, agent_response_queue
|
15
15
|
from ... schema import prompt_request_queue as pr_request_queue
|
16
16
|
from ... schema import prompt_response_queue as pr_response_queue
|
17
|
-
from ... schema import text_completion_request_queue as tc_request_queue
|
18
|
-
from ... schema import text_completion_response_queue as tc_response_queue
|
19
17
|
from ... schema import graph_rag_request_queue as gr_request_queue
|
20
18
|
from ... schema import graph_rag_response_queue as gr_response_queue
|
21
19
|
from ... clients.prompt_client import PromptClient
|
@@ -133,12 +131,6 @@ class Processor(ConsumerProducer):
|
|
133
131
|
prompt_response_queue = params.get(
|
134
132
|
"prompt_response_queue", pr_response_queue
|
135
133
|
)
|
136
|
-
text_completion_request_queue = params.get(
|
137
|
-
"text_completion_request_queue", tc_request_queue
|
138
|
-
)
|
139
|
-
text_completion_response_queue = params.get(
|
140
|
-
"text_completion_response_queue", tc_response_queue
|
141
|
-
)
|
142
134
|
graph_rag_request_queue = params.get(
|
143
135
|
"graph_rag_request_queue", gr_request_queue
|
144
136
|
)
|
@@ -155,8 +147,6 @@ class Processor(ConsumerProducer):
|
|
155
147
|
"output_schema": AgentResponse,
|
156
148
|
"prompt_request_queue": prompt_request_queue,
|
157
149
|
"prompt_response_queue": prompt_response_queue,
|
158
|
-
"text_completion_request_queue": tc_request_queue,
|
159
|
-
"text_completion_response_queue": tc_response_queue,
|
160
150
|
"graph_rag_request_queue": gr_request_queue,
|
161
151
|
"graph_rag_response_queue": gr_response_queue,
|
162
152
|
}
|
@@ -169,13 +159,6 @@ class Processor(ConsumerProducer):
|
|
169
159
|
pulsar_host = self.pulsar_host
|
170
160
|
)
|
171
161
|
|
172
|
-
self.llm = LlmClient(
|
173
|
-
subscriber=subscriber,
|
174
|
-
input_queue=text_completion_request_queue,
|
175
|
-
output_queue=text_completion_response_queue,
|
176
|
-
pulsar_host = self.pulsar_host
|
177
|
-
)
|
178
|
-
|
179
162
|
self.graph_rag = GraphRagClient(
|
180
163
|
subscriber=subscriber,
|
181
164
|
input_queue=graph_rag_request_queue,
|
@@ -340,18 +323,6 @@ class Processor(ConsumerProducer):
|
|
340
323
|
help=f'Prompt response queue (default: {pr_response_queue})',
|
341
324
|
)
|
342
325
|
|
343
|
-
parser.add_argument(
|
344
|
-
'--text-completion-request-queue',
|
345
|
-
default=tc_request_queue,
|
346
|
-
help=f'Text completion request queue (default: {tc_request_queue})',
|
347
|
-
)
|
348
|
-
|
349
|
-
parser.add_argument(
|
350
|
-
'--text-completion-response-queue',
|
351
|
-
default=tc_response_queue,
|
352
|
-
help=f'Text completion response queue (default: {tc_response_queue})',
|
353
|
-
)
|
354
|
-
|
355
326
|
parser.add_argument(
|
356
327
|
'--graph-rag-request-queue',
|
357
328
|
default=gr_request_queue,
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.20.2"
|
{trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/azure/llm.py
RENAMED
@@ -158,25 +158,15 @@ class Processor(ConsumerProducer):
|
|
158
158
|
|
159
159
|
except TooManyRequests:
|
160
160
|
|
161
|
-
print("
|
161
|
+
print("Rate limit...")
|
162
162
|
|
163
|
-
|
164
|
-
|
165
|
-
type = "rate-limit",
|
166
|
-
message = str(e),
|
167
|
-
),
|
168
|
-
response=None,
|
169
|
-
in_token=None,
|
170
|
-
out_token=None,
|
171
|
-
model=None,
|
172
|
-
)
|
173
|
-
|
174
|
-
self.producer.send(r, properties={"id": id})
|
175
|
-
|
176
|
-
self.consumer.acknowledge(msg)
|
163
|
+
# Leave rate limit retries to the base handler
|
164
|
+
raise TooManyRequests()
|
177
165
|
|
178
166
|
except Exception as e:
|
179
167
|
|
168
|
+
# Apart from rate limits, treat all exceptions as unrecoverable
|
169
|
+
|
180
170
|
print(f"Exception: {e}")
|
181
171
|
|
182
172
|
print("Send error response...", flush=True)
|
@@ -4,10 +4,9 @@ Simple LLM service, performs text prompt completion using the Azure
|
|
4
4
|
OpenAI endpoit service. Input is prompt, output is response.
|
5
5
|
"""
|
6
6
|
|
7
|
-
import requests
|
8
7
|
import json
|
9
8
|
from prometheus_client import Histogram
|
10
|
-
from openai import AzureOpenAI
|
9
|
+
from openai import AzureOpenAI, RateLimitError
|
11
10
|
import os
|
12
11
|
|
13
12
|
from .... schema import TextCompletionRequest, TextCompletionResponse, Error
|
@@ -126,30 +125,27 @@ class Processor(ConsumerProducer):
|
|
126
125
|
print(f"Output Tokens: {outputtokens}", flush=True)
|
127
126
|
print("Send response...", flush=True)
|
128
127
|
|
129
|
-
r = TextCompletionResponse(response=resp.choices[0].message.content, error=None, in_token=inputtokens, out_token=outputtokens, model=self.model)
|
130
|
-
self.producer.send(r, properties={"id": id})
|
131
|
-
|
132
|
-
except TooManyRequests:
|
133
|
-
|
134
|
-
print("Send rate limit response...", flush=True)
|
135
|
-
|
136
128
|
r = TextCompletionResponse(
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
in_token=None,
|
143
|
-
out_token=None,
|
144
|
-
model=None,
|
129
|
+
response=resp.choices[0].message.content,
|
130
|
+
error=None,
|
131
|
+
in_token=inputtokens,
|
132
|
+
out_token=outputtokens,
|
133
|
+
model=self.model
|
145
134
|
)
|
146
135
|
|
147
136
|
self.producer.send(r, properties={"id": id})
|
148
137
|
|
149
|
-
|
138
|
+
except RateLimitError:
|
139
|
+
|
140
|
+
print("Send rate limit response...", flush=True)
|
141
|
+
|
142
|
+
# Leave rate limit retries to the base handler
|
143
|
+
raise TooManyRequests()
|
150
144
|
|
151
145
|
except Exception as e:
|
152
146
|
|
147
|
+
# Apart from rate limits, treat all exceptions as unrecoverable
|
148
|
+
|
153
149
|
print(f"Exception: {e}")
|
154
150
|
|
155
151
|
print("Send error response...", flush=True)
|
{trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/claude/llm.py
RENAMED
@@ -87,8 +87,6 @@ class Processor(ConsumerProducer):
|
|
87
87
|
|
88
88
|
try:
|
89
89
|
|
90
|
-
# FIXME: Rate limits?
|
91
|
-
|
92
90
|
with __class__.text_completion_metric.time():
|
93
91
|
|
94
92
|
response = message = self.claude.messages.create(
|
@@ -117,34 +115,26 @@ class Processor(ConsumerProducer):
|
|
117
115
|
print(f"Output Tokens: {outputtokens}", flush=True)
|
118
116
|
|
119
117
|
print("Send response...", flush=True)
|
120
|
-
r = TextCompletionResponse(
|
118
|
+
r = TextCompletionResponse(
|
119
|
+
response=resp,
|
120
|
+
error=None,
|
121
|
+
in_token=inputtokens,
|
122
|
+
out_token=outputtokens,
|
123
|
+
model=self.model
|
124
|
+
)
|
121
125
|
self.send(r, properties={"id": id})
|
122
126
|
|
123
127
|
print("Done.", flush=True)
|
124
128
|
|
125
|
-
|
126
|
-
# for a rate limit
|
127
|
-
except TooManyRequests:
|
128
|
-
|
129
|
-
print("Send rate limit response...", flush=True)
|
130
|
-
|
131
|
-
r = TextCompletionResponse(
|
132
|
-
error=Error(
|
133
|
-
type = "rate-limit",
|
134
|
-
message = str(e),
|
135
|
-
),
|
136
|
-
response=None,
|
137
|
-
in_token=None,
|
138
|
-
out_token=None,
|
139
|
-
model=None,
|
140
|
-
)
|
141
|
-
|
142
|
-
self.producer.send(r, properties={"id": id})
|
129
|
+
except anthropic.RateLimitError:
|
143
130
|
|
144
|
-
|
131
|
+
# Leave rate limit retries to the base handler
|
132
|
+
raise TooManyRequests()
|
145
133
|
|
146
134
|
except Exception as e:
|
147
135
|
|
136
|
+
# Apart from rate limits, treat all exceptions as unrecoverable
|
137
|
+
|
148
138
|
print(f"Exception: {e}")
|
149
139
|
|
150
140
|
print("Send error response...", flush=True)
|
{trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/cohere/llm.py
RENAMED
@@ -112,27 +112,15 @@ class Processor(ConsumerProducer):
|
|
112
112
|
|
113
113
|
# FIXME: Wrong exception, don't know what this LLM throws
|
114
114
|
# for a rate limit
|
115
|
-
except
|
115
|
+
except cohere.TooManyRequestsError:
|
116
116
|
|
117
|
-
|
118
|
-
|
119
|
-
r = TextCompletionResponse(
|
120
|
-
error=Error(
|
121
|
-
type = "rate-limit",
|
122
|
-
message = str(e),
|
123
|
-
),
|
124
|
-
response=None,
|
125
|
-
in_token=None,
|
126
|
-
out_token=None,
|
127
|
-
model=None,
|
128
|
-
)
|
129
|
-
|
130
|
-
self.producer.send(r, properties={"id": id})
|
131
|
-
|
132
|
-
self.consumer.acknowledge(msg)
|
117
|
+
# Leave rate limit retries to the base handler
|
118
|
+
raise TooManyRequests()
|
133
119
|
|
134
120
|
except Exception as e:
|
135
121
|
|
122
|
+
# Apart from rate limits, treat all exceptions as unrecoverable
|
123
|
+
|
136
124
|
print(f"Exception: {e}")
|
137
125
|
|
138
126
|
print("Send error response...", flush=True)
|
@@ -88,7 +88,8 @@ class Processor(ConsumerProducer):
|
|
88
88
|
HarmCategory.HARM_CATEGORY_HARASSMENT: block_level,
|
89
89
|
HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT: block_level,
|
90
90
|
HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT: block_level,
|
91
|
-
# There is a documentation conflict on whether or not
|
91
|
+
# There is a documentation conflict on whether or not
|
92
|
+
# CIVIC_INTEGRITY is a valid category
|
92
93
|
# HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY: block_level,
|
93
94
|
}
|
94
95
|
|
@@ -122,8 +123,6 @@ class Processor(ConsumerProducer):
|
|
122
123
|
|
123
124
|
try:
|
124
125
|
|
125
|
-
# FIXME: Rate limits?
|
126
|
-
|
127
126
|
with __class__.text_completion_metric.time():
|
128
127
|
|
129
128
|
chat_session = self.llm.start_chat(
|
@@ -140,35 +139,30 @@ class Processor(ConsumerProducer):
|
|
140
139
|
print(f"Output Tokens: {outputtokens}", flush=True)
|
141
140
|
|
142
141
|
print("Send response...", flush=True)
|
143
|
-
r = TextCompletionResponse(
|
142
|
+
r = TextCompletionResponse(
|
143
|
+
response=resp,
|
144
|
+
error=None,
|
145
|
+
in_token=inputtokens,
|
146
|
+
out_token=outputtokens,
|
147
|
+
model=self.model
|
148
|
+
)
|
144
149
|
self.send(r, properties={"id": id})
|
145
150
|
|
146
151
|
print("Done.", flush=True)
|
147
152
|
|
148
|
-
# FIXME: Wrong exception, don't know what this LLM throws
|
149
|
-
# for a rate limit
|
150
153
|
except ResourceExhausted as e:
|
151
154
|
|
152
|
-
print("
|
155
|
+
print("Hit rate limit:", e, flush=True)
|
153
156
|
|
154
|
-
|
155
|
-
|
156
|
-
type = "rate-limit",
|
157
|
-
message = str(e),
|
158
|
-
),
|
159
|
-
response=None,
|
160
|
-
in_token=None,
|
161
|
-
out_token=None,
|
162
|
-
model=None,
|
163
|
-
)
|
164
|
-
|
165
|
-
self.producer.send(r, properties={"id": id})
|
166
|
-
|
167
|
-
self.consumer.acknowledge(msg)
|
157
|
+
# Leave rate limit retries to the default handler
|
158
|
+
raise TooManyRequests()
|
168
159
|
|
169
160
|
except Exception as e:
|
170
161
|
|
171
|
-
|
162
|
+
# Apart from rate limits, treat all exceptions as unrecoverable
|
163
|
+
|
164
|
+
print(type(e), flush=True)
|
165
|
+
print(f"Exception: {e}", flush=True)
|
172
166
|
|
173
167
|
print("Send error response...", flush=True)
|
174
168
|
|
{trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/llamafile/llm.py
RENAMED
@@ -126,26 +126,7 @@ class Processor(ConsumerProducer):
|
|
126
126
|
|
127
127
|
print("Done.", flush=True)
|
128
128
|
|
129
|
-
#
|
130
|
-
# for a rate limit
|
131
|
-
except TooManyRequests:
|
132
|
-
|
133
|
-
print("Send rate limit response...", flush=True)
|
134
|
-
|
135
|
-
r = TextCompletionResponse(
|
136
|
-
error=Error(
|
137
|
-
type = "rate-limit",
|
138
|
-
message = str(e),
|
139
|
-
),
|
140
|
-
response=None,
|
141
|
-
in_token=None,
|
142
|
-
out_token=None,
|
143
|
-
model=None,
|
144
|
-
)
|
145
|
-
|
146
|
-
self.producer.send(r, properties={"id": id})
|
147
|
-
|
148
|
-
self.consumer.acknowledge(msg)
|
129
|
+
# SLM, presumably there aren't rate limits
|
149
130
|
|
150
131
|
except Exception as e:
|
151
132
|
|
{trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/ollama/llm.py
RENAMED
@@ -100,26 +100,7 @@ class Processor(ConsumerProducer):
|
|
100
100
|
|
101
101
|
print("Done.", flush=True)
|
102
102
|
|
103
|
-
#
|
104
|
-
# for a rate limit
|
105
|
-
except TooManyRequests:
|
106
|
-
|
107
|
-
print("Send rate limit response...", flush=True)
|
108
|
-
|
109
|
-
r = TextCompletionResponse(
|
110
|
-
error=Error(
|
111
|
-
type = "rate-limit",
|
112
|
-
message = str(e),
|
113
|
-
),
|
114
|
-
response=None,
|
115
|
-
in_token=None,
|
116
|
-
out_token=None,
|
117
|
-
model=None,
|
118
|
-
)
|
119
|
-
|
120
|
-
self.producer.send(r, properties={"id": id})
|
121
|
-
|
122
|
-
self.consumer.acknowledge(msg)
|
103
|
+
# SLM, presumably no rate limits
|
123
104
|
|
124
105
|
except Exception as e:
|
125
106
|
|
{trustgraph-flow-0.20.0 → trustgraph-flow-0.20.2}/trustgraph/model/text_completion/openai/llm.py
RENAMED
@@ -4,7 +4,7 @@ Simple LLM service, performs text prompt completion using OpenAI.
|
|
4
4
|
Input is prompt, output is response.
|
5
5
|
"""
|
6
6
|
|
7
|
-
from openai import OpenAI
|
7
|
+
from openai import OpenAI, RateLimitError
|
8
8
|
from prometheus_client import Histogram
|
9
9
|
import os
|
10
10
|
|
@@ -87,8 +87,6 @@ class Processor(ConsumerProducer):
|
|
87
87
|
|
88
88
|
try:
|
89
89
|
|
90
|
-
# FIXME: Rate limits
|
91
|
-
|
92
90
|
with __class__.text_completion_metric.time():
|
93
91
|
|
94
92
|
resp = self.openai.chat.completions.create(
|
@@ -134,27 +132,15 @@ class Processor(ConsumerProducer):
|
|
134
132
|
|
135
133
|
# FIXME: Wrong exception, don't know what this LLM throws
|
136
134
|
# for a rate limit
|
137
|
-
except
|
138
|
-
|
139
|
-
print("Send rate limit response...", flush=True)
|
140
|
-
|
141
|
-
r = TextCompletionResponse(
|
142
|
-
error=Error(
|
143
|
-
type = "rate-limit",
|
144
|
-
message = str(e),
|
145
|
-
),
|
146
|
-
response=None,
|
147
|
-
in_token=None,
|
148
|
-
out_token=None,
|
149
|
-
model=None,
|
150
|
-
)
|
135
|
+
except openai.RateLimitError:
|
151
136
|
|
152
|
-
|
153
|
-
|
154
|
-
self.consumer.acknowledge(msg)
|
137
|
+
# Leave rate limit retries to the base handler
|
138
|
+
raise TooManyRequests()
|
155
139
|
|
156
140
|
except Exception as e:
|
157
141
|
|
142
|
+
# Apart from rate limits, treat all exceptions as unrecoverable
|
143
|
+
|
158
144
|
print(f"Exception: {e}")
|
159
145
|
|
160
146
|
print("Send error response...", flush=True)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 0.20.
|
3
|
+
Version: 0.20.2
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.20.2.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.20.0"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|