trustgraph-flow 1.0.3__tar.gz → 1.0.5__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-1.0.3 → trustgraph-flow-1.0.5}/PKG-INFO +2 -2
- trustgraph-flow-1.0.5/scripts/text-completion-tgi +6 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/setup.py +1 -0
- trustgraph-flow-1.0.5/trustgraph/flow_version.py +1 -0
- trustgraph-flow-1.0.5/trustgraph/model/text_completion/tgi/__init__.py +3 -0
- trustgraph-flow-1.0.5/trustgraph/model/text_completion/tgi/__main__.py +7 -0
- trustgraph-flow-1.0.5/trustgraph/model/text_completion/tgi/llm.py +143 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph_flow.egg-info/SOURCES.txt +4 -0
- trustgraph-flow-1.0.3/trustgraph/flow_version.py +0 -1
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/README.md +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/api-gateway +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/chunker-token +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/config-svc +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/document-embeddings +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/document-rag +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/graph-rag +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/kg-manager +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/kg-store +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/librarian +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/metering +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/object-extract-row +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/pdf-ocr-mistral +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/prompt-generic +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/prompt-template +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/run-processing +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-lmstudio +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-mistral +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/setup.cfg +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/agent/react/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/config/service/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/config/service/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/config/service/config.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/config/service/flow.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/config/service/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/cores/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/cores/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/cores/knowledge.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/cores/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/object/row/extract.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/config/receiver.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/agent.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/config.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/document_load.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/document_rag.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/embeddings.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/entity_contexts_export.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/entity_contexts_import.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/flow.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/knowledge.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/librarian.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/manager.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/mux.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/prompt.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/requestor.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/sender.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/serialize.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/streamer.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/text_completion.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/text_load.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/triples_export.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/triples_import.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/triples_query.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/endpoint/constant_endpoint.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/endpoint/manager.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/endpoint/metrics.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/endpoint/socket.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/endpoint/variable_endpoint.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/unused/dbpedia.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/unused/encyclopedia.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/unused/internet_search.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/librarian/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/generic/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/generic/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/generic/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/template/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/template/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/document_rag/document_rag.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/graph_rag/graph_rag.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/knowledge/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/knowledge/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/knowledge/store.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/tables/__init__.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/tables/config.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/tables/knowledge.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/tables/library.py +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph_flow.egg-info/requires.txt +0 -0
- {trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/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: 1.0.
|
3
|
+
Version: 1.0.5
|
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/v1.0.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v1.0.5.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -117,6 +117,7 @@ setuptools.setup(
|
|
117
117
|
"scripts/text-completion-mistral",
|
118
118
|
"scripts/text-completion-ollama",
|
119
119
|
"scripts/text-completion-openai",
|
120
|
+
"scripts/text-completion-tgi",
|
120
121
|
"scripts/triples-query-cassandra",
|
121
122
|
"scripts/triples-query-falkordb",
|
122
123
|
"scripts/triples-query-memgraph",
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "1.0.5"
|
@@ -0,0 +1,143 @@
|
|
1
|
+
|
2
|
+
"""
|
3
|
+
Simple LLM service, performs text prompt completion using HuggingFace TGI
|
4
|
+
Input is prompt, output is response.
|
5
|
+
"""
|
6
|
+
|
7
|
+
import os
|
8
|
+
import aiohttp
|
9
|
+
|
10
|
+
from .... exceptions import TooManyRequests
|
11
|
+
from .... base import LlmService, LlmResult
|
12
|
+
|
13
|
+
default_ident = "text-completion"
|
14
|
+
|
15
|
+
default_temperature = 0.0
|
16
|
+
default_max_output = 2048
|
17
|
+
default_base_url = os.getenv("TGI_BASE_URL")
|
18
|
+
|
19
|
+
if default_base_url == "" or default_base_url is None:
|
20
|
+
default_base_url = "http://tgi-service:8899/v1"
|
21
|
+
|
22
|
+
class Processor(LlmService):
|
23
|
+
|
24
|
+
def __init__(self, **params):
|
25
|
+
|
26
|
+
base_url = params.get("url", default_base_url)
|
27
|
+
temperature = params.get("temperature", default_temperature)
|
28
|
+
max_output = params.get("max_output", default_max_output)
|
29
|
+
|
30
|
+
super(Processor, self).__init__(
|
31
|
+
**params | {
|
32
|
+
"temperature": temperature,
|
33
|
+
"max_output": max_output,
|
34
|
+
"url": base_url,
|
35
|
+
}
|
36
|
+
)
|
37
|
+
|
38
|
+
self.base_url = base_url
|
39
|
+
self.temperature = temperature
|
40
|
+
self.max_output = max_output
|
41
|
+
|
42
|
+
self.session = aiohttp.ClientSession()
|
43
|
+
|
44
|
+
print("Using TGI service at", base_url)
|
45
|
+
|
46
|
+
print("Initialised", flush=True)
|
47
|
+
|
48
|
+
async def generate_content(self, system, prompt):
|
49
|
+
|
50
|
+
headers = {
|
51
|
+
"Content-Type": "application/json",
|
52
|
+
}
|
53
|
+
|
54
|
+
request = {
|
55
|
+
"model": "tgi",
|
56
|
+
"messages": [
|
57
|
+
{
|
58
|
+
"role": "system",
|
59
|
+
"content": system,
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"role": "user",
|
63
|
+
"content": prompt,
|
64
|
+
}
|
65
|
+
],
|
66
|
+
"max_tokens": self.max_output,
|
67
|
+
"temperature": self.temperature,
|
68
|
+
}
|
69
|
+
|
70
|
+
try:
|
71
|
+
|
72
|
+
url = f"{self.base_url}/chat/completions"
|
73
|
+
|
74
|
+
async with self.session.post(
|
75
|
+
url,
|
76
|
+
headers=headers,
|
77
|
+
json=request,
|
78
|
+
) as response:
|
79
|
+
|
80
|
+
print("GOT A SRESPONSE")
|
81
|
+
|
82
|
+
if response.status != 200:
|
83
|
+
raise RuntimeError("Bad status: " + str(response.status))
|
84
|
+
|
85
|
+
print("GOT A GOOD STATUS")
|
86
|
+
|
87
|
+
resp = await response.json()
|
88
|
+
|
89
|
+
print("RESPONSE>", resp)
|
90
|
+
|
91
|
+
inputtokens = resp["usage"]["prompt_tokens"]
|
92
|
+
outputtokens = resp["usage"]["completion_tokens"]
|
93
|
+
ans = resp["choices"][0]["message"]["content"]
|
94
|
+
print(f"Input Tokens: {inputtokens}", flush=True)
|
95
|
+
print(f"Output Tokens: {outputtokens}", flush=True)
|
96
|
+
print(ans, flush=True)
|
97
|
+
|
98
|
+
resp = LlmResult(
|
99
|
+
text = ans,
|
100
|
+
in_token = inputtokens,
|
101
|
+
out_token = outputtokens,
|
102
|
+
model = "tgi",
|
103
|
+
)
|
104
|
+
|
105
|
+
return resp
|
106
|
+
|
107
|
+
# FIXME: Assuming TGI won't produce rate limits?
|
108
|
+
|
109
|
+
except Exception as e:
|
110
|
+
|
111
|
+
# Apart from rate limits, treat all exceptions as unrecoverable
|
112
|
+
|
113
|
+
print(f"Exception: {type(e)} {e}")
|
114
|
+
raise e
|
115
|
+
|
116
|
+
@staticmethod
|
117
|
+
def add_args(parser):
|
118
|
+
|
119
|
+
LlmService.add_args(parser)
|
120
|
+
|
121
|
+
parser.add_argument(
|
122
|
+
'-u', '--url',
|
123
|
+
default=default_base_url,
|
124
|
+
help=f'TGI service base URL (default: {default_base_url})'
|
125
|
+
)
|
126
|
+
|
127
|
+
parser.add_argument(
|
128
|
+
'-t', '--temperature',
|
129
|
+
type=float,
|
130
|
+
default=default_temperature,
|
131
|
+
help=f'LLM temperature parameter (default: {default_temperature})'
|
132
|
+
)
|
133
|
+
|
134
|
+
parser.add_argument(
|
135
|
+
'-x', '--max-output',
|
136
|
+
type=int,
|
137
|
+
default=default_max_output,
|
138
|
+
help=f'LLM max output tokens (default: {default_max_output})'
|
139
|
+
)
|
140
|
+
|
141
|
+
def run():
|
142
|
+
|
143
|
+
Processor.launch(default_ident, __doc__)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.5
|
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/v1.0.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v1.0.5.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -48,6 +48,7 @@ scripts/text-completion-lmstudio
|
|
48
48
|
scripts/text-completion-mistral
|
49
49
|
scripts/text-completion-ollama
|
50
50
|
scripts/text-completion-openai
|
51
|
+
scripts/text-completion-tgi
|
51
52
|
scripts/triples-query-cassandra
|
52
53
|
scripts/triples-query-falkordb
|
53
54
|
scripts/triples-query-memgraph
|
@@ -217,6 +218,9 @@ trustgraph/model/text_completion/ollama/llm.py
|
|
217
218
|
trustgraph/model/text_completion/openai/__init__.py
|
218
219
|
trustgraph/model/text_completion/openai/__main__.py
|
219
220
|
trustgraph/model/text_completion/openai/llm.py
|
221
|
+
trustgraph/model/text_completion/tgi/__init__.py
|
222
|
+
trustgraph/model/text_completion/tgi/__main__.py
|
223
|
+
trustgraph/model/text_completion/tgi/llm.py
|
220
224
|
trustgraph/processing/__init__.py
|
221
225
|
trustgraph/processing/__main__.py
|
222
226
|
trustgraph/processing/processing.py
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "1.0.3"
|
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
|
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
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/decoding/mistral_ocr/processor.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/direct/milvus_graph_embeddings.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/direct/milvus_object_embeddings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/fastembed/processor.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/graph_embeddings/__init__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/graph_embeddings/__main__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/embeddings/graph_embeddings/embeddings.py
RENAMED
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
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/definitions/__init__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/definitions/__main__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/definitions/extract.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/relationships/__init__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/relationships/__main__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/extract/kg/relationships/extract.py
RENAMED
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
|
{trustgraph-flow-1.0.3 → trustgraph-flow-1.0.5}/trustgraph/gateway/dispatch/document_load.py
RENAMED
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
|