trustgraph-flow 1.0.2__tar.gz → 1.0.3__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.2 → trustgraph-flow-1.0.3}/PKG-INFO +2 -2
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/setup.py +1 -1
- trustgraph-flow-1.0.3/trustgraph/flow_version.py +1 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/librarian.py +0 -2
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/mux.py +0 -1
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/requestor.py +0 -2
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/streamer.py +0 -2
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/triples_query.py +0 -1
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/endpoint/constant_endpoint.py +1 -3
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/endpoint/variable_endpoint.py +1 -3
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/googleaistudio/llm.py +45 -38
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph_flow.egg-info/requires.txt +1 -1
- trustgraph-flow-1.0.2/trustgraph/flow_version.py +0 -1
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/README.md +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/api-gateway +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/chunker-token +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/config-svc +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/document-embeddings +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/document-rag +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/graph-rag +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/kg-manager +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/kg-store +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/librarian +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/metering +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/object-extract-row +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/pdf-ocr-mistral +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/prompt-generic +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/prompt-template +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/run-processing +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-lmstudio +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-mistral +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/setup.cfg +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/agent/react/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/config/service/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/config/service/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/config/service/config.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/config/service/flow.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/config/service/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/cores/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/cores/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/cores/knowledge.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/cores/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/decoding/mistral_ocr/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/decoding/mistral_ocr/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/decoding/mistral_ocr/processor.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/object/row/extract.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/config/receiver.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/agent.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/config.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/document_embeddings_export.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/document_embeddings_import.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/document_load.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/document_rag.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/embeddings.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/entity_contexts_export.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/entity_contexts_import.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/flow.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/graph_embeddings_export.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/graph_embeddings_import.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/graph_embeddings_query.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/graph_rag.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/knowledge.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/manager.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/prompt.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/sender.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/serialize.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/text_completion.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/text_load.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/triples_export.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/triples_import.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/endpoint/manager.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/endpoint/metrics.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/endpoint/socket.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/unused/dbpedia.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/unused/encyclopedia.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/unused/internet_search.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/librarian/librarian.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/librarian/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/generic/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/generic/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/generic/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/template/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/template/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/lmstudio/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/lmstudio/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/lmstudio/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/mistral/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/mistral/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/mistral/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/document_rag/document_rag.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/graph_rag/graph_rag.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/knowledge/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/knowledge/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/knowledge/store.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/tables/__init__.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/tables/config.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/tables/knowledge.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/tables/library.py +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/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.3
|
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.3.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "1.0.3"
|
@@ -4,10 +4,18 @@ Simple LLM service, performs text prompt completion using GoogleAIStudio.
|
|
4
4
|
Input is prompt, output is response.
|
5
5
|
"""
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
#
|
8
|
+
# Using this SDK:
|
9
|
+
# https://googleapis.github.io/python-genai/genai.html#module-genai.client
|
10
|
+
#
|
11
|
+
# Seems to have simpler dependencies on the 'VertexAI' service, which
|
12
|
+
# TrustGraph implements in the trustgraph-vertexai package.
|
13
|
+
#
|
14
|
+
|
15
|
+
from google import genai
|
16
|
+
from google.genai import types
|
17
|
+
from google.genai.types import HarmCategory, HarmBlockThreshold
|
9
18
|
from google.api_core.exceptions import ResourceExhausted
|
10
|
-
from prometheus_client import Histogram
|
11
19
|
import os
|
12
20
|
|
13
21
|
from .... exceptions import TooManyRequests
|
@@ -15,7 +23,7 @@ from .... base import LlmService, LlmResult
|
|
15
23
|
|
16
24
|
default_ident = "text-completion"
|
17
25
|
|
18
|
-
default_model = 'gemini-
|
26
|
+
default_model = 'gemini-2.0-flash-001'
|
19
27
|
default_temperature = 0.0
|
20
28
|
default_max_output = 8192
|
21
29
|
default_api_key = os.getenv("GOOGLE_AI_STUDIO_KEY")
|
@@ -40,58 +48,56 @@ class Processor(LlmService):
|
|
40
48
|
}
|
41
49
|
)
|
42
50
|
|
43
|
-
genai.
|
51
|
+
self.client = genai.Client(api_key=api_key)
|
44
52
|
self.model = model
|
45
53
|
self.temperature = temperature
|
46
54
|
self.max_output = max_output
|
47
55
|
|
48
|
-
self.generation_config = {
|
49
|
-
"temperature": temperature,
|
50
|
-
"top_p": 1,
|
51
|
-
"top_k": 40,
|
52
|
-
"max_output_tokens": max_output,
|
53
|
-
"response_mime_type": "text/plain",
|
54
|
-
}
|
55
|
-
|
56
56
|
block_level = HarmBlockThreshold.BLOCK_ONLY_HIGH
|
57
57
|
|
58
|
-
self.safety_settings=
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
58
|
+
self.safety_settings = [
|
59
|
+
types.SafetySetting(
|
60
|
+
category = HarmCategory.HARM_CATEGORY_HATE_SPEECH,
|
61
|
+
threshold = block_level,
|
62
|
+
),
|
63
|
+
types.SafetySetting(
|
64
|
+
category = HarmCategory.HARM_CATEGORY_HARASSMENT,
|
65
|
+
threshold = block_level,
|
66
|
+
),
|
67
|
+
types.SafetySetting(
|
68
|
+
category = HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT,
|
69
|
+
threshold = block_level,
|
70
|
+
),
|
71
|
+
types.SafetySetting(
|
72
|
+
category = HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT,
|
73
|
+
threshold = block_level,
|
74
|
+
),
|
63
75
|
# There is a documentation conflict on whether or not
|
64
76
|
# CIVIC_INTEGRITY is a valid category
|
65
77
|
# HarmCategory.HARM_CATEGORY_CIVIC_INTEGRITY: block_level,
|
66
|
-
|
67
|
-
|
68
|
-
self.llm = genai.GenerativeModel(
|
69
|
-
model_name=model,
|
70
|
-
generation_config=self.generation_config,
|
71
|
-
safety_settings=self.safety_settings,
|
72
|
-
system_instruction="You are a helpful AI assistant.",
|
73
|
-
)
|
78
|
+
]
|
74
79
|
|
75
80
|
print("Initialised", flush=True)
|
76
81
|
|
77
82
|
async def generate_content(self, system, prompt):
|
78
83
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
84
|
+
generation_config = types.GenerateContentConfig(
|
85
|
+
temperature = self.temperature,
|
86
|
+
top_p = 1,
|
87
|
+
top_k = 40,
|
88
|
+
max_output_tokens = self.max_output,
|
89
|
+
response_mime_type = "text/plain",
|
90
|
+
system_instruction = system,
|
91
|
+
safety_settings = self.safety_settings,
|
92
|
+
)
|
87
93
|
|
88
94
|
try:
|
89
95
|
|
90
|
-
|
91
|
-
|
92
|
-
|
96
|
+
response = self.client.models.generate_content(
|
97
|
+
model=self.model,
|
98
|
+
config=generation_config,
|
99
|
+
contents=prompt,
|
93
100
|
)
|
94
|
-
response = chat_session.send_message(prompt)
|
95
101
|
|
96
102
|
resp = response.text
|
97
103
|
inputtokens = int(response.usage_metadata.prompt_token_count)
|
@@ -158,3 +164,4 @@ class Processor(LlmService):
|
|
158
164
|
def run():
|
159
165
|
|
160
166
|
Processor.launch(default_ident, __doc__)
|
167
|
+
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.3
|
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.3.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__ = "1.0.2"
|
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.2 → trustgraph-flow-1.0.3}/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.2 → trustgraph-flow-1.0.3}/trustgraph/direct/milvus_graph_embeddings.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/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.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/fastembed/processor.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/graph_embeddings/__init__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/embeddings/graph_embeddings/__main__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/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.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/definitions/__init__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/definitions/__main__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/definitions/extract.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/relationships/__init__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/trustgraph/extract/kg/relationships/__main__.py
RENAMED
File without changes
|
{trustgraph-flow-1.0.2 → trustgraph-flow-1.0.3}/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.2 → trustgraph-flow-1.0.3}/trustgraph/gateway/dispatch/document_load.py
RENAMED
File without changes
|