trustgraph-flow 0.21.8__tar.gz → 0.21.10__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.21.8 → trustgraph-flow-0.21.10}/PKG-INFO +2 -2
- trustgraph-flow-0.21.10/scripts/text-completion-lmstudio +6 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/setup.py +1 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/agent/react/service.py +5 -5
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/fastembed/processor.py +1 -1
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/ollama/processor.py +1 -1
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/external/wikipedia/service.py +2 -2
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/object/row/extract.py +2 -2
- trustgraph-flow-0.21.10/trustgraph/flow_version.py +1 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/generic/service.py +12 -12
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/azure/llm.py +2 -2
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/azure_openai/llm.py +2 -2
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/cohere/llm.py +1 -1
- trustgraph-flow-0.21.10/trustgraph/model/text_completion/lmstudio/llm.py +193 -0
- trustgraph-flow-0.21.10/trustgraph/model/text_completion/openai/__init__.py +3 -0
- trustgraph-flow-0.21.10/trustgraph/model/text_completion/openai/__main__.py +7 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph_flow.egg-info/SOURCES.txt +4 -0
- trustgraph-flow-0.21.8/trustgraph/flow_version.py +0 -1
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/README.md +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/api-gateway +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/chunker-token +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/document-embeddings +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/document-rag +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/graph-rag +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/librarian +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/metering +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/object-extract-row +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/prompt-generic +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/prompt-template +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/run-processing +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-mistral +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/setup.cfg +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/document_rag.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/agent.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/dbpedia.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/document_embeddings_load.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/document_embeddings_stream.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/document_load.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/document_rag.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/embeddings.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/encyclopedia.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/endpoint.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/graph_embeddings_load.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/graph_embeddings_query.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/graph_embeddings_stream.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/graph_rag.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/internet_search.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/librarian.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/metrics.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/mux.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/prompt.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/requestor.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/sender.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/serialize.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/socket.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/text_completion.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/text_load.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/triples_load.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/triples_query.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/gateway/triples_stream.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/graph_rag.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/librarian/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/librarian/table_store.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/metering/pricelist.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/generic/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/generic/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/template/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/template/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph-flow-0.21.8/trustgraph/model/text_completion/mistral → trustgraph-flow-0.21.10/trustgraph/model/text_completion/lmstudio}/__init__.py +0 -0
- {trustgraph-flow-0.21.8/trustgraph/model/text_completion/mistral → trustgraph-flow-0.21.10/trustgraph/model/text_completion/lmstudio}/__main__.py +0 -0
- {trustgraph-flow-0.21.8/trustgraph/model/text_completion/ollama → trustgraph-flow-0.21.10/trustgraph/model/text_completion/mistral}/__init__.py +0 -0
- {trustgraph-flow-0.21.8/trustgraph/model/text_completion/ollama → trustgraph-flow-0.21.10/trustgraph/model/text_completion/mistral}/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph-flow-0.21.8/trustgraph/model/text_completion/openai → trustgraph-flow-0.21.10/trustgraph/model/text_completion/ollama}/__init__.py +0 -0
- {trustgraph-flow-0.21.8/trustgraph/model/text_completion/openai → trustgraph-flow-0.21.10/trustgraph/model/text_completion/ollama}/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph_flow.egg-info/requires.txt +0 -0
- {trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/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.21.
|
3
|
+
Version: 0.21.10
|
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.21.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.10.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -108,6 +108,7 @@ setuptools.setup(
|
|
108
108
|
"scripts/text-completion-cohere",
|
109
109
|
"scripts/text-completion-googleaistudio",
|
110
110
|
"scripts/text-completion-llamafile",
|
111
|
+
"scripts/text-completion-lmstudio",
|
111
112
|
"scripts/text-completion-mistral",
|
112
113
|
"scripts/text-completion-ollama",
|
113
114
|
"scripts/text-completion-openai",
|
@@ -231,7 +231,7 @@ class Processor(ConsumerProducer):
|
|
231
231
|
observation=None,
|
232
232
|
)
|
233
233
|
|
234
|
-
await self.
|
234
|
+
await self.send(r, properties={"id": id})
|
235
235
|
|
236
236
|
async def observe(x):
|
237
237
|
|
@@ -244,7 +244,7 @@ class Processor(ConsumerProducer):
|
|
244
244
|
observation=x,
|
245
245
|
)
|
246
246
|
|
247
|
-
await self.
|
247
|
+
await self.send(r, properties={"id": id})
|
248
248
|
|
249
249
|
act = self.agent.react(v.question, history, think, observe)
|
250
250
|
|
@@ -260,7 +260,7 @@ class Processor(ConsumerProducer):
|
|
260
260
|
thought=None,
|
261
261
|
)
|
262
262
|
|
263
|
-
await self.
|
263
|
+
await self.send(r, properties={"id": id})
|
264
264
|
|
265
265
|
print("Done.", flush=True)
|
266
266
|
|
@@ -283,7 +283,7 @@ class Processor(ConsumerProducer):
|
|
283
283
|
]
|
284
284
|
)
|
285
285
|
|
286
|
-
|
286
|
+
self.recursive_input.send(r, properties={"id": id})
|
287
287
|
|
288
288
|
print("Done.", flush=True)
|
289
289
|
|
@@ -303,7 +303,7 @@ class Processor(ConsumerProducer):
|
|
303
303
|
response=None,
|
304
304
|
)
|
305
305
|
|
306
|
-
await self.
|
306
|
+
await self.send(r, properties={"id": id})
|
307
307
|
|
308
308
|
@staticmethod
|
309
309
|
def add_args(parser):
|
@@ -60,7 +60,7 @@ class Processor(ConsumerProducer):
|
|
60
60
|
text=resp
|
61
61
|
)
|
62
62
|
|
63
|
-
await self.
|
63
|
+
await self.send(r, properties={"id": id})
|
64
64
|
|
65
65
|
self.consumer.acknowledge(msg)
|
66
66
|
|
@@ -75,7 +75,7 @@ class Processor(ConsumerProducer):
|
|
75
75
|
),
|
76
76
|
text=None,
|
77
77
|
)
|
78
|
-
await self.
|
78
|
+
await self.send(r, properties={"id": id})
|
79
79
|
|
80
80
|
self.consumer.acknowledge(msg)
|
81
81
|
|
@@ -130,14 +130,14 @@ class Processor(ConsumerProducer):
|
|
130
130
|
t = Rows(
|
131
131
|
metadata=metadata, row_schema=self.row_schema, rows=rows
|
132
132
|
)
|
133
|
-
await self.
|
133
|
+
await self.send(t)
|
134
134
|
|
135
135
|
def emit_vec(self, metadata, name, vec, key_name, key):
|
136
136
|
|
137
137
|
r = ObjectEmbeddings(
|
138
138
|
metadata=metadata, vectors=vec, name=name, key_name=key_name, id=key
|
139
139
|
)
|
140
|
-
|
140
|
+
self.vec_prod.send(r)
|
141
141
|
|
142
142
|
async def handle(self, msg):
|
143
143
|
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.21.10"
|
{trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/prompt/generic/service.py
RENAMED
@@ -164,7 +164,7 @@ class Processor(ConsumerProducer):
|
|
164
164
|
|
165
165
|
print("Send response...", flush=True)
|
166
166
|
r = PromptResponse(definitions=output, error=None)
|
167
|
-
await self.
|
167
|
+
await self.send(r, properties={"id": id})
|
168
168
|
|
169
169
|
print("Done.", flush=True)
|
170
170
|
|
@@ -182,7 +182,7 @@ class Processor(ConsumerProducer):
|
|
182
182
|
response=None,
|
183
183
|
)
|
184
184
|
|
185
|
-
await self.
|
185
|
+
await self.send(r, properties={"id": id})
|
186
186
|
|
187
187
|
async def handle_extract_topics(self, id, v):
|
188
188
|
|
@@ -223,7 +223,7 @@ class Processor(ConsumerProducer):
|
|
223
223
|
|
224
224
|
print("Send response...", flush=True)
|
225
225
|
r = PromptResponse(topics=output, error=None)
|
226
|
-
await self.
|
226
|
+
await self.send(r, properties={"id": id})
|
227
227
|
|
228
228
|
print("Done.", flush=True)
|
229
229
|
|
@@ -241,7 +241,7 @@ class Processor(ConsumerProducer):
|
|
241
241
|
response=None,
|
242
242
|
)
|
243
243
|
|
244
|
-
await self.
|
244
|
+
await self.send(r, properties={"id": id})
|
245
245
|
|
246
246
|
async def handle_extract_relationships(self, id, v):
|
247
247
|
|
@@ -295,7 +295,7 @@ class Processor(ConsumerProducer):
|
|
295
295
|
|
296
296
|
print("Send response...", flush=True)
|
297
297
|
r = PromptResponse(relationships=output, error=None)
|
298
|
-
await self.
|
298
|
+
await self.send(r, properties={"id": id})
|
299
299
|
|
300
300
|
print("Done.", flush=True)
|
301
301
|
|
@@ -313,7 +313,7 @@ class Processor(ConsumerProducer):
|
|
313
313
|
response=None,
|
314
314
|
)
|
315
315
|
|
316
|
-
await self.
|
316
|
+
await self.send(r, properties={"id": id})
|
317
317
|
|
318
318
|
async def handle_extract_rows(self, id, v):
|
319
319
|
|
@@ -366,7 +366,7 @@ class Processor(ConsumerProducer):
|
|
366
366
|
|
367
367
|
print("Send response...", flush=True)
|
368
368
|
r = PromptResponse(rows=output, error=None)
|
369
|
-
await self.
|
369
|
+
await self.send(r, properties={"id": id})
|
370
370
|
|
371
371
|
print("Done.", flush=True)
|
372
372
|
|
@@ -384,7 +384,7 @@ class Processor(ConsumerProducer):
|
|
384
384
|
response=None,
|
385
385
|
)
|
386
386
|
|
387
|
-
await self.
|
387
|
+
await self.send(r, properties={"id": id})
|
388
388
|
|
389
389
|
async def handle_kg_prompt(self, id, v):
|
390
390
|
|
@@ -400,7 +400,7 @@ class Processor(ConsumerProducer):
|
|
400
400
|
|
401
401
|
print("Send response...", flush=True)
|
402
402
|
r = PromptResponse(answer=ans, error=None)
|
403
|
-
await self.
|
403
|
+
await self.send(r, properties={"id": id})
|
404
404
|
|
405
405
|
print("Done.", flush=True)
|
406
406
|
|
@@ -418,7 +418,7 @@ class Processor(ConsumerProducer):
|
|
418
418
|
response=None,
|
419
419
|
)
|
420
420
|
|
421
|
-
await self.
|
421
|
+
await self.send(r, properties={"id": id})
|
422
422
|
|
423
423
|
async def handle_document_prompt(self, id, v):
|
424
424
|
|
@@ -437,7 +437,7 @@ class Processor(ConsumerProducer):
|
|
437
437
|
|
438
438
|
print("Send response...", flush=True)
|
439
439
|
r = PromptResponse(answer=ans, error=None)
|
440
|
-
await self.
|
440
|
+
await self.send(r, properties={"id": id})
|
441
441
|
|
442
442
|
print("Done.", flush=True)
|
443
443
|
|
@@ -455,7 +455,7 @@ class Processor(ConsumerProducer):
|
|
455
455
|
response=None,
|
456
456
|
)
|
457
457
|
|
458
|
-
await self.
|
458
|
+
await self.send(r, properties={"id": id})
|
459
459
|
|
460
460
|
@staticmethod
|
461
461
|
def add_args(parser):
|
{trustgraph-flow-0.21.8 → trustgraph-flow-0.21.10}/trustgraph/model/text_completion/azure/llm.py
RENAMED
@@ -154,7 +154,7 @@ class Processor(ConsumerProducer):
|
|
154
154
|
print("Send response...", flush=True)
|
155
155
|
|
156
156
|
r = TextCompletionResponse(response=resp, error=None, in_token=inputtokens, out_token=outputtokens, model=self.model)
|
157
|
-
await self.
|
157
|
+
await self.send(r, properties={"id": id})
|
158
158
|
|
159
159
|
except TooManyRequests:
|
160
160
|
|
@@ -182,7 +182,7 @@ class Processor(ConsumerProducer):
|
|
182
182
|
model=None,
|
183
183
|
)
|
184
184
|
|
185
|
-
await self.
|
185
|
+
await self.send(r, properties={"id": id})
|
186
186
|
|
187
187
|
self.consumer.acknowledge(msg)
|
188
188
|
|
@@ -135,7 +135,7 @@ class Processor(ConsumerProducer):
|
|
135
135
|
model=self.model
|
136
136
|
)
|
137
137
|
|
138
|
-
await self.
|
138
|
+
await self.send(r, properties={"id": id})
|
139
139
|
|
140
140
|
except RateLimitError:
|
141
141
|
|
@@ -163,7 +163,7 @@ class Processor(ConsumerProducer):
|
|
163
163
|
model=None,
|
164
164
|
)
|
165
165
|
|
166
|
-
await self.
|
166
|
+
await self.send(r, properties={"id": id})
|
167
167
|
|
168
168
|
self.consumer.acknowledge(msg)
|
169
169
|
|
@@ -0,0 +1,193 @@
|
|
1
|
+
|
2
|
+
"""
|
3
|
+
Simple LLM service, performs text prompt completion using OpenAI.
|
4
|
+
Input is prompt, output is response.
|
5
|
+
"""
|
6
|
+
|
7
|
+
from openai import OpenAI
|
8
|
+
from prometheus_client import Histogram
|
9
|
+
import os
|
10
|
+
|
11
|
+
from .... schema import TextCompletionRequest, TextCompletionResponse, Error
|
12
|
+
from .... schema import text_completion_request_queue
|
13
|
+
from .... schema import text_completion_response_queue
|
14
|
+
from .... log_level import LogLevel
|
15
|
+
from .... base import ConsumerProducer
|
16
|
+
from .... exceptions import TooManyRequests
|
17
|
+
|
18
|
+
module = ".".join(__name__.split(".")[1:-1])
|
19
|
+
|
20
|
+
default_input_queue = text_completion_request_queue
|
21
|
+
default_output_queue = text_completion_response_queue
|
22
|
+
default_subscriber = module
|
23
|
+
default_model = 'gemma3:9b'
|
24
|
+
default_url = os.getenv("LMSTUDIO_URL", "http://localhost:1234/")
|
25
|
+
default_temperature = 0.0
|
26
|
+
default_max_output = 4096
|
27
|
+
|
28
|
+
class Processor(ConsumerProducer):
|
29
|
+
|
30
|
+
def __init__(self, **params):
|
31
|
+
|
32
|
+
input_queue = params.get("input_queue", default_input_queue)
|
33
|
+
output_queue = params.get("output_queue", default_output_queue)
|
34
|
+
subscriber = params.get("subscriber", default_subscriber)
|
35
|
+
model = params.get("model", default_model)
|
36
|
+
url = params.get("url", default_url)
|
37
|
+
temperature = params.get("temperature", default_temperature)
|
38
|
+
max_output = params.get("max_output", default_max_output)
|
39
|
+
|
40
|
+
super(Processor, self).__init__(
|
41
|
+
**params | {
|
42
|
+
"input_queue": input_queue,
|
43
|
+
"output_queue": output_queue,
|
44
|
+
"subscriber": subscriber,
|
45
|
+
"input_schema": TextCompletionRequest,
|
46
|
+
"output_schema": TextCompletionResponse,
|
47
|
+
"model": model,
|
48
|
+
"temperature": temperature,
|
49
|
+
"max_output": max_output,
|
50
|
+
"url" : url,
|
51
|
+
}
|
52
|
+
)
|
53
|
+
|
54
|
+
if not hasattr(__class__, "text_completion_metric"):
|
55
|
+
__class__.text_completion_metric = Histogram(
|
56
|
+
'text_completion_duration',
|
57
|
+
'Text completion duration (seconds)',
|
58
|
+
buckets=[
|
59
|
+
0.25, 0.5, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0,
|
60
|
+
8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0,
|
61
|
+
17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0,
|
62
|
+
30.0, 35.0, 40.0, 45.0, 50.0, 60.0, 80.0, 100.0,
|
63
|
+
120.0
|
64
|
+
]
|
65
|
+
)
|
66
|
+
|
67
|
+
self.model = model
|
68
|
+
self.url = url + "v1/"
|
69
|
+
self.temperature = temperature
|
70
|
+
self.max_output = max_output
|
71
|
+
self.openai = OpenAI(
|
72
|
+
base_url=self.url,
|
73
|
+
api_key = "sk-no-key-required",
|
74
|
+
)
|
75
|
+
|
76
|
+
print("Initialised", flush=True)
|
77
|
+
|
78
|
+
async def handle(self, msg):
|
79
|
+
|
80
|
+
v = msg.value()
|
81
|
+
|
82
|
+
# Sender-produced ID
|
83
|
+
|
84
|
+
id = msg.properties()["id"]
|
85
|
+
|
86
|
+
print(f"Handling prompt {id}...", flush=True)
|
87
|
+
|
88
|
+
prompt = v.system + "\n\n" + v.prompt
|
89
|
+
|
90
|
+
try:
|
91
|
+
|
92
|
+
# FIXME: Rate limits
|
93
|
+
|
94
|
+
with __class__.text_completion_metric.time():
|
95
|
+
|
96
|
+
print(prompt)
|
97
|
+
|
98
|
+
resp = self.openai.chat.completions.create(
|
99
|
+
model=self.model,
|
100
|
+
messages=[
|
101
|
+
{"role": "user", "content": prompt}
|
102
|
+
]
|
103
|
+
#temperature=self.temperature,
|
104
|
+
#max_tokens=self.max_output,
|
105
|
+
#top_p=1,
|
106
|
+
#frequency_penalty=0,
|
107
|
+
#presence_penalty=0,
|
108
|
+
#response_format={
|
109
|
+
# "type": "text"
|
110
|
+
#}
|
111
|
+
)
|
112
|
+
|
113
|
+
print(resp)
|
114
|
+
|
115
|
+
inputtokens = resp.usage.prompt_tokens
|
116
|
+
outputtokens = resp.usage.completion_tokens
|
117
|
+
|
118
|
+
print(resp.choices[0].message.content, flush=True)
|
119
|
+
print(f"Input Tokens: {inputtokens}", flush=True)
|
120
|
+
print(f"Output Tokens: {outputtokens}", flush=True)
|
121
|
+
|
122
|
+
print("Send response...", flush=True)
|
123
|
+
r = TextCompletionResponse(
|
124
|
+
response=resp.choices[0].message.content,
|
125
|
+
error=None,
|
126
|
+
in_token=inputtokens,
|
127
|
+
out_token=outputtokens,
|
128
|
+
model=self.model,
|
129
|
+
)
|
130
|
+
await self.send(r, properties={"id": id})
|
131
|
+
|
132
|
+
print("Done.", flush=True)
|
133
|
+
|
134
|
+
# SLM, presumably there aren't rate limits
|
135
|
+
|
136
|
+
except Exception as e:
|
137
|
+
|
138
|
+
print(f"Exception: {e}")
|
139
|
+
|
140
|
+
print("Send error response...", flush=True)
|
141
|
+
|
142
|
+
r = TextCompletionResponse(
|
143
|
+
error=Error(
|
144
|
+
type = "llm-error",
|
145
|
+
message = str(e),
|
146
|
+
),
|
147
|
+
response=None,
|
148
|
+
in_token=None,
|
149
|
+
out_token=None,
|
150
|
+
model=None,
|
151
|
+
)
|
152
|
+
|
153
|
+
await self.send(r, properties={"id": id})
|
154
|
+
|
155
|
+
self.consumer.acknowledge(msg)
|
156
|
+
|
157
|
+
@staticmethod
|
158
|
+
def add_args(parser):
|
159
|
+
|
160
|
+
ConsumerProducer.add_args(
|
161
|
+
parser, default_input_queue, default_subscriber,
|
162
|
+
default_output_queue,
|
163
|
+
)
|
164
|
+
|
165
|
+
parser.add_argument(
|
166
|
+
'-m', '--model',
|
167
|
+
default=default_model,
|
168
|
+
help=f'LLM model (default: gemma3:9b)'
|
169
|
+
)
|
170
|
+
|
171
|
+
parser.add_argument(
|
172
|
+
'-u', '--url',
|
173
|
+
default=default_url,
|
174
|
+
help=f'LMStudio URL (default: {default_url})'
|
175
|
+
)
|
176
|
+
|
177
|
+
parser.add_argument(
|
178
|
+
'-t', '--temperature',
|
179
|
+
type=float,
|
180
|
+
default=default_temperature,
|
181
|
+
help=f'LLM temperature parameter (default: {default_temperature})'
|
182
|
+
)
|
183
|
+
|
184
|
+
parser.add_argument(
|
185
|
+
'-x', '--max-output',
|
186
|
+
type=int,
|
187
|
+
default=default_max_output,
|
188
|
+
help=f'LLM max output tokens (default: {default_max_output})'
|
189
|
+
)
|
190
|
+
|
191
|
+
def run():
|
192
|
+
Processor.launch(module, __doc__)
|
193
|
+
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 0.21.
|
3
|
+
Version: 0.21.10
|
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.21.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.10.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -40,6 +40,7 @@ scripts/text-completion-claude
|
|
40
40
|
scripts/text-completion-cohere
|
41
41
|
scripts/text-completion-googleaistudio
|
42
42
|
scripts/text-completion-llamafile
|
43
|
+
scripts/text-completion-lmstudio
|
43
44
|
scripts/text-completion-mistral
|
44
45
|
scripts/text-completion-ollama
|
45
46
|
scripts/text-completion-openai
|
@@ -182,6 +183,9 @@ trustgraph/model/text_completion/googleaistudio/llm.py
|
|
182
183
|
trustgraph/model/text_completion/llamafile/__init__.py
|
183
184
|
trustgraph/model/text_completion/llamafile/__main__.py
|
184
185
|
trustgraph/model/text_completion/llamafile/llm.py
|
186
|
+
trustgraph/model/text_completion/lmstudio/__init__.py
|
187
|
+
trustgraph/model/text_completion/lmstudio/__main__.py
|
188
|
+
trustgraph/model/text_completion/lmstudio/llm.py
|
185
189
|
trustgraph/model/text_completion/mistral/__init__.py
|
186
190
|
trustgraph/model/text_completion/mistral/__main__.py
|
187
191
|
trustgraph/model/text_completion/mistral/llm.py
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.21.8"
|
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
|