trustgraph-flow 0.21.0__tar.gz → 0.21.1__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.0 → trustgraph-flow-0.21.1}/PKG-INFO +2 -2
- trustgraph-flow-0.21.1/scripts/librarian +6 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/setup.py +3 -1
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/agent/react/service.py +7 -7
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/chunking/recursive/chunker.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/chunking/token/chunker.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/decoding/pdf/pdf_decoder.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/document_embeddings/embeddings.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/fastembed/processor.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/graph_embeddings/embeddings.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/ollama/processor.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/external/wikipedia/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/definitions/extract.py +7 -7
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/relationships/extract.py +5 -5
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/topics/extract.py +7 -5
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/object/row/extract.py +4 -4
- trustgraph-flow-0.21.1/trustgraph/flow_version.py +1 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/document_embeddings_load.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/document_embeddings_stream.py +1 -1
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/endpoint.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/graph_embeddings_load.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/graph_embeddings_stream.py +1 -1
- trustgraph-flow-0.21.1/trustgraph/gateway/librarian.py +57 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/requestor.py +10 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/sender.py +1 -1
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/serialize.py +70 -1
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/service.py +9 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/triples_load.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/triples_stream.py +1 -1
- trustgraph-flow-0.21.1/trustgraph/librarian/blob_store.py +51 -0
- trustgraph-flow-0.21.1/trustgraph/librarian/librarian.py +56 -0
- trustgraph-flow-0.21.1/trustgraph/librarian/service.py +354 -0
- trustgraph-flow-0.21.1/trustgraph/librarian/table_store.py +131 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/metering/counter.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/prompt/generic/service.py +26 -26
- trustgraph-flow-0.21.1/trustgraph/model/prompt/template/__main__.py +7 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/prompt/template/service.py +6 -6
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/azure/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/azure_openai/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/claude/llm.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/cohere/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/googleaistudio/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/llamafile/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/ollama/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/openai/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/doc_embeddings/milvus/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/doc_embeddings/pinecone/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/doc_embeddings/qdrant/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/graph_embeddings/milvus/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/graph_embeddings/pinecone/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/graph_embeddings/qdrant/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/cassandra/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/falkordb/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/memgraph/service.py +4 -4
- trustgraph-flow-0.21.1/trustgraph/query/triples/neo4j/__init__.py +3 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/neo4j/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/retrieval/document_rag/rag.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/retrieval/graph_rag/rag.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/milvus/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/pinecone/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/qdrant/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/milvus/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/pinecone/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/qdrant/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/object_embeddings/milvus/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/rows/cassandra/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/cassandra/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/falkordb/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/memgraph/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/neo4j/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph_flow.egg-info/SOURCES.txt +8 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph_flow.egg-info/requires.txt +1 -0
- trustgraph-flow-0.21.0/trustgraph/flow_version.py +0 -1
- trustgraph-flow-0.21.0/trustgraph/gateway/publisher.py +0 -54
- trustgraph-flow-0.21.0/trustgraph/gateway/subscriber.py +0 -111
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/README.md +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/api-gateway +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/chunker-token +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/document-embeddings +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/document-rag +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/graph-rag +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/metering +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/object-extract-row +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/prompt-generic +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/prompt-template +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/run-processing +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/setup.cfg +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/document_rag.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/agent.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/dbpedia.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/document_load.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/document_rag.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/embeddings.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/encyclopedia.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/graph_embeddings_query.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/graph_rag.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/internet_search.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/metrics.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/mux.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/prompt.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/socket.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/text_completion.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/text_load.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/triples_query.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/graph_rag.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/model/prompt/generic → trustgraph-flow-0.21.1/trustgraph/librarian}/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/model/prompt/generic → trustgraph-flow-0.21.1/trustgraph/librarian}/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/metering/pricelist.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/model/prompt/template → trustgraph-flow-0.21.1/trustgraph/model/prompt/generic}/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/model/prompt/template → trustgraph-flow-0.21.1/trustgraph/model/prompt/generic}/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/doc_embeddings/milvus → trustgraph-flow-0.21.1/trustgraph/model/prompt/template}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/doc_embeddings/pinecone → trustgraph-flow-0.21.1/trustgraph/query/doc_embeddings/milvus}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/doc_embeddings/qdrant → trustgraph-flow-0.21.1/trustgraph/query/doc_embeddings/pinecone}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/graph_embeddings/milvus → trustgraph-flow-0.21.1/trustgraph/query/doc_embeddings/qdrant}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/graph_embeddings/pinecone → trustgraph-flow-0.21.1/trustgraph/query/graph_embeddings/milvus}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/graph_embeddings/qdrant → trustgraph-flow-0.21.1/trustgraph/query/graph_embeddings/pinecone}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/triples/cassandra → trustgraph-flow-0.21.1/trustgraph/query/graph_embeddings/qdrant}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/triples/falkordb → trustgraph-flow-0.21.1/trustgraph/query/triples/cassandra}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/triples/memgraph → trustgraph-flow-0.21.1/trustgraph/query/triples/falkordb}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/triples/neo4j → trustgraph-flow-0.21.1/trustgraph/query/triples/memgraph}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/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.1
|
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.1.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -49,6 +49,7 @@ setuptools.setup(
|
|
49
49
|
"langchain-community",
|
50
50
|
"langchain-core",
|
51
51
|
"langchain-text-splitters",
|
52
|
+
"minio",
|
52
53
|
"neo4j",
|
53
54
|
"ollama",
|
54
55
|
"openai",
|
@@ -78,8 +79,8 @@ setuptools.setup(
|
|
78
79
|
"scripts/de-write-qdrant",
|
79
80
|
"scripts/document-embeddings",
|
80
81
|
"scripts/document-rag",
|
81
|
-
"scripts/embeddings-ollama",
|
82
82
|
"scripts/embeddings-fastembed",
|
83
|
+
"scripts/embeddings-ollama",
|
83
84
|
"scripts/ge-query-milvus",
|
84
85
|
"scripts/ge-query-pinecone",
|
85
86
|
"scripts/ge-query-qdrant",
|
@@ -91,6 +92,7 @@ setuptools.setup(
|
|
91
92
|
"scripts/kg-extract-definitions",
|
92
93
|
"scripts/kg-extract-relationships",
|
93
94
|
"scripts/kg-extract-topics",
|
95
|
+
"scripts/librarian",
|
94
96
|
"scripts/metering",
|
95
97
|
"scripts/object-extract-row",
|
96
98
|
"scripts/oe-write-milvus",
|
@@ -189,7 +189,7 @@ class Processor(ConsumerProducer):
|
|
189
189
|
|
190
190
|
return json.loads(json_str)
|
191
191
|
|
192
|
-
def handle(self, msg):
|
192
|
+
async def handle(self, msg):
|
193
193
|
|
194
194
|
try:
|
195
195
|
|
@@ -229,7 +229,7 @@ class Processor(ConsumerProducer):
|
|
229
229
|
observation=None,
|
230
230
|
)
|
231
231
|
|
232
|
-
self.producer.send(r, properties={"id": id})
|
232
|
+
await self.producer.send(r, properties={"id": id})
|
233
233
|
|
234
234
|
def observe(x):
|
235
235
|
|
@@ -242,7 +242,7 @@ class Processor(ConsumerProducer):
|
|
242
242
|
observation=x,
|
243
243
|
)
|
244
244
|
|
245
|
-
self.producer.send(r, properties={"id": id})
|
245
|
+
await self.producer.send(r, properties={"id": id})
|
246
246
|
|
247
247
|
act = self.agent.react(v.question, history, think, observe)
|
248
248
|
|
@@ -258,7 +258,7 @@ class Processor(ConsumerProducer):
|
|
258
258
|
thought=None,
|
259
259
|
)
|
260
260
|
|
261
|
-
self.producer.send(r, properties={"id": id})
|
261
|
+
await self.producer.send(r, properties={"id": id})
|
262
262
|
|
263
263
|
print("Done.", flush=True)
|
264
264
|
|
@@ -281,7 +281,7 @@ class Processor(ConsumerProducer):
|
|
281
281
|
]
|
282
282
|
)
|
283
283
|
|
284
|
-
self.recursive_input.send(r, properties={"id": id})
|
284
|
+
await self.recursive_input.send(r, properties={"id": id})
|
285
285
|
|
286
286
|
print("Done.", flush=True)
|
287
287
|
|
@@ -301,7 +301,7 @@ class Processor(ConsumerProducer):
|
|
301
301
|
response=None,
|
302
302
|
)
|
303
303
|
|
304
|
-
self.producer.send(r, properties={"id": id})
|
304
|
+
await self.producer.send(r, properties={"id": id})
|
305
305
|
|
306
306
|
@staticmethod
|
307
307
|
def add_args(parser):
|
@@ -377,5 +377,5 @@ description.'''
|
|
377
377
|
|
378
378
|
def run():
|
379
379
|
|
380
|
-
Processor.
|
380
|
+
Processor.launch(module, __doc__)
|
381
381
|
|
@@ -52,7 +52,7 @@ class Processor(ConsumerProducer):
|
|
52
52
|
is_separator_regex=False,
|
53
53
|
)
|
54
54
|
|
55
|
-
def handle(self, msg):
|
55
|
+
async def handle(self, msg):
|
56
56
|
|
57
57
|
v = msg.value()
|
58
58
|
print(f"Chunking {v.metadata.id}...", flush=True)
|
@@ -70,7 +70,7 @@ class Processor(ConsumerProducer):
|
|
70
70
|
|
71
71
|
__class__.chunk_metric.observe(len(chunk.page_content))
|
72
72
|
|
73
|
-
self.send(r)
|
73
|
+
await self.send(r)
|
74
74
|
|
75
75
|
print("Done.", flush=True)
|
76
76
|
|
@@ -98,5 +98,5 @@ class Processor(ConsumerProducer):
|
|
98
98
|
|
99
99
|
def run():
|
100
100
|
|
101
|
-
Processor.
|
101
|
+
Processor.launch(module, __doc__)
|
102
102
|
|
@@ -51,7 +51,7 @@ class Processor(ConsumerProducer):
|
|
51
51
|
chunk_overlap=chunk_overlap,
|
52
52
|
)
|
53
53
|
|
54
|
-
def handle(self, msg):
|
54
|
+
async def handle(self, msg):
|
55
55
|
|
56
56
|
v = msg.value()
|
57
57
|
print(f"Chunking {v.metadata.id}...", flush=True)
|
@@ -69,7 +69,7 @@ class Processor(ConsumerProducer):
|
|
69
69
|
|
70
70
|
__class__.chunk_metric.observe(len(chunk.page_content))
|
71
71
|
|
72
|
-
self.send(r)
|
72
|
+
await self.send(r)
|
73
73
|
|
74
74
|
print("Done.", flush=True)
|
75
75
|
|
@@ -97,5 +97,5 @@ class Processor(ConsumerProducer):
|
|
97
97
|
|
98
98
|
def run():
|
99
99
|
|
100
|
-
Processor.
|
100
|
+
Processor.launch(module, __doc__)
|
101
101
|
|
@@ -39,7 +39,7 @@ class Processor(ConsumerProducer):
|
|
39
39
|
|
40
40
|
print("PDF inited")
|
41
41
|
|
42
|
-
def handle(self, msg):
|
42
|
+
async def handle(self, msg):
|
43
43
|
|
44
44
|
print("PDF message received")
|
45
45
|
|
@@ -64,7 +64,7 @@ class Processor(ConsumerProducer):
|
|
64
64
|
text=page.page_content.encode("utf-8"),
|
65
65
|
)
|
66
66
|
|
67
|
-
self.send(r)
|
67
|
+
await self.send(r)
|
68
68
|
|
69
69
|
print("Done.", flush=True)
|
70
70
|
|
@@ -78,5 +78,5 @@ class Processor(ConsumerProducer):
|
|
78
78
|
|
79
79
|
def run():
|
80
80
|
|
81
|
-
Processor.
|
81
|
+
Processor.launch(module, __doc__)
|
82
82
|
|
@@ -52,7 +52,7 @@ class Processor(ConsumerProducer):
|
|
52
52
|
subscriber=module + "-emb",
|
53
53
|
)
|
54
54
|
|
55
|
-
def handle(self, msg):
|
55
|
+
async def handle(self, msg):
|
56
56
|
|
57
57
|
v = msg.value()
|
58
58
|
print(f"Indexing {v.metadata.id}...", flush=True)
|
@@ -73,7 +73,7 @@ class Processor(ConsumerProducer):
|
|
73
73
|
chunks=embeds,
|
74
74
|
)
|
75
75
|
|
76
|
-
self.
|
76
|
+
await self.send(r)
|
77
77
|
|
78
78
|
except Exception as e:
|
79
79
|
print("Exception:", e, flush=True)
|
@@ -105,5 +105,5 @@ class Processor(ConsumerProducer):
|
|
105
105
|
|
106
106
|
def run():
|
107
107
|
|
108
|
-
Processor.
|
108
|
+
Processor.launch(module, __doc__)
|
109
109
|
|
{trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/embeddings/fastembed/processor.py
RENAMED
@@ -41,7 +41,7 @@ class Processor(ConsumerProducer):
|
|
41
41
|
|
42
42
|
self.embeddings = TextEmbedding(model_name = model)
|
43
43
|
|
44
|
-
def handle(self, msg):
|
44
|
+
async def handle(self, msg):
|
45
45
|
|
46
46
|
v = msg.value()
|
47
47
|
|
@@ -65,7 +65,7 @@ class Processor(ConsumerProducer):
|
|
65
65
|
error=None,
|
66
66
|
)
|
67
67
|
|
68
|
-
self.producer.send(r, properties={"id": id})
|
68
|
+
await self.producer.send(r, properties={"id": id})
|
69
69
|
|
70
70
|
print("Done.", flush=True)
|
71
71
|
|
@@ -85,5 +85,5 @@ class Processor(ConsumerProducer):
|
|
85
85
|
|
86
86
|
def run():
|
87
87
|
|
88
|
-
Processor.
|
88
|
+
Processor.launch(module, __doc__)
|
89
89
|
|
@@ -52,7 +52,7 @@ class Processor(ConsumerProducer):
|
|
52
52
|
subscriber=module + "-emb",
|
53
53
|
)
|
54
54
|
|
55
|
-
def handle(self, msg):
|
55
|
+
async def handle(self, msg):
|
56
56
|
|
57
57
|
v = msg.value()
|
58
58
|
print(f"Indexing {v.metadata.id}...", flush=True)
|
@@ -77,7 +77,7 @@ class Processor(ConsumerProducer):
|
|
77
77
|
entities=entities,
|
78
78
|
)
|
79
79
|
|
80
|
-
self.
|
80
|
+
await self.send(r)
|
81
81
|
|
82
82
|
except Exception as e:
|
83
83
|
print("Exception:", e, flush=True)
|
@@ -109,5 +109,5 @@ class Processor(ConsumerProducer):
|
|
109
109
|
|
110
110
|
def run():
|
111
111
|
|
112
|
-
Processor.
|
112
|
+
Processor.launch(module, __doc__)
|
113
113
|
|
@@ -45,7 +45,7 @@ class Processor(ConsumerProducer):
|
|
45
45
|
self.client = Client(host=ollama)
|
46
46
|
self.model = model
|
47
47
|
|
48
|
-
def handle(self, msg):
|
48
|
+
async def handle(self, msg):
|
49
49
|
|
50
50
|
v = msg.value()
|
51
51
|
|
@@ -67,7 +67,7 @@ class Processor(ConsumerProducer):
|
|
67
67
|
error=None,
|
68
68
|
)
|
69
69
|
|
70
|
-
self.producer.send(r, properties={"id": id})
|
70
|
+
await self.producer.send(r, properties={"id": id})
|
71
71
|
|
72
72
|
print("Done.", flush=True)
|
73
73
|
|
@@ -93,5 +93,5 @@ class Processor(ConsumerProducer):
|
|
93
93
|
|
94
94
|
def run():
|
95
95
|
|
96
|
-
Processor.
|
96
|
+
Processor.launch(module, __doc__)
|
97
97
|
|
@@ -39,7 +39,7 @@ class Processor(ConsumerProducer):
|
|
39
39
|
|
40
40
|
self.url = url
|
41
41
|
|
42
|
-
def handle(self, msg):
|
42
|
+
async def handle(self, msg):
|
43
43
|
|
44
44
|
v = msg.value()
|
45
45
|
|
@@ -60,7 +60,7 @@ class Processor(ConsumerProducer):
|
|
60
60
|
text=resp
|
61
61
|
)
|
62
62
|
|
63
|
-
self.producer.send(r, properties={"id": id})
|
63
|
+
await self.producer.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
|
-
self.producer.send(r, properties={"id": id})
|
78
|
+
await self.producer.send(r, properties={"id": id})
|
79
79
|
|
80
80
|
self.consumer.acknowledge(msg)
|
81
81
|
|
@@ -98,5 +98,5 @@ class Processor(ConsumerProducer):
|
|
98
98
|
|
99
99
|
def run():
|
100
100
|
|
101
|
-
Processor.
|
101
|
+
Processor.launch(module, __doc__)
|
102
102
|
|
{trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/definitions/extract.py
RENAMED
@@ -96,15 +96,15 @@ class Processor(ConsumerProducer):
|
|
96
96
|
|
97
97
|
return self.prompt.request_definitions(chunk)
|
98
98
|
|
99
|
-
def emit_edges(self, metadata, triples):
|
99
|
+
async def emit_edges(self, metadata, triples):
|
100
100
|
|
101
101
|
t = Triples(
|
102
102
|
metadata=metadata,
|
103
103
|
triples=triples,
|
104
104
|
)
|
105
|
-
self.
|
105
|
+
await self.send(t)
|
106
106
|
|
107
|
-
def emit_ecs(self, metadata, entities):
|
107
|
+
async def emit_ecs(self, metadata, entities):
|
108
108
|
|
109
109
|
t = EntityContexts(
|
110
110
|
metadata=metadata,
|
@@ -112,7 +112,7 @@ class Processor(ConsumerProducer):
|
|
112
112
|
)
|
113
113
|
self.ec_prod.send(t)
|
114
114
|
|
115
|
-
def handle(self, msg):
|
115
|
+
async def handle(self, msg):
|
116
116
|
|
117
117
|
v = msg.value()
|
118
118
|
print(f"Indexing {v.metadata.id}...", flush=True)
|
@@ -171,7 +171,7 @@ class Processor(ConsumerProducer):
|
|
171
171
|
entities.append(ec)
|
172
172
|
|
173
173
|
|
174
|
-
self.emit_edges(
|
174
|
+
await self.emit_edges(
|
175
175
|
Metadata(
|
176
176
|
id=v.metadata.id,
|
177
177
|
metadata=[],
|
@@ -181,7 +181,7 @@ class Processor(ConsumerProducer):
|
|
181
181
|
triples
|
182
182
|
)
|
183
183
|
|
184
|
-
self.emit_ecs(
|
184
|
+
await self.emit_ecs(
|
185
185
|
Metadata(
|
186
186
|
id=v.metadata.id,
|
187
187
|
metadata=[],
|
@@ -224,5 +224,5 @@ class Processor(ConsumerProducer):
|
|
224
224
|
|
225
225
|
def run():
|
226
226
|
|
227
|
-
Processor.
|
227
|
+
Processor.launch(module, __doc__)
|
228
228
|
|
{trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/extract/kg/relationships/extract.py
RENAMED
@@ -71,15 +71,15 @@ class Processor(ConsumerProducer):
|
|
71
71
|
|
72
72
|
return self.prompt.request_relationships(chunk)
|
73
73
|
|
74
|
-
def emit_edges(self, metadata, triples):
|
74
|
+
async def emit_edges(self, metadata, triples):
|
75
75
|
|
76
76
|
t = Triples(
|
77
77
|
metadata=metadata,
|
78
78
|
triples=triples,
|
79
79
|
)
|
80
|
-
self.
|
80
|
+
await self.send(t)
|
81
81
|
|
82
|
-
def handle(self, msg):
|
82
|
+
async def handle(self, msg):
|
83
83
|
|
84
84
|
v = msg.value()
|
85
85
|
print(f"Indexing {v.metadata.id}...", flush=True)
|
@@ -166,7 +166,7 @@ class Processor(ConsumerProducer):
|
|
166
166
|
o=Value(value=v.metadata.id, is_uri=True)
|
167
167
|
))
|
168
168
|
|
169
|
-
self.emit_edges(
|
169
|
+
await self.emit_edges(
|
170
170
|
Metadata(
|
171
171
|
id=v.metadata.id,
|
172
172
|
metadata=[],
|
@@ -203,5 +203,5 @@ class Processor(ConsumerProducer):
|
|
203
203
|
|
204
204
|
def run():
|
205
205
|
|
206
|
-
Processor.
|
206
|
+
Processor.launch(module, __doc__)
|
207
207
|
|
@@ -69,15 +69,15 @@ class Processor(ConsumerProducer):
|
|
69
69
|
|
70
70
|
return self.prompt.request_topics(chunk)
|
71
71
|
|
72
|
-
def emit_edge(self, metadata, s, p, o):
|
72
|
+
async def emit_edge(self, metadata, s, p, o):
|
73
73
|
|
74
74
|
t = Triples(
|
75
75
|
metadata=metadata,
|
76
76
|
triples=[Triple(s=s, p=p, o=o)],
|
77
77
|
)
|
78
|
-
self.
|
78
|
+
await self.send(t)
|
79
79
|
|
80
|
-
def handle(self, msg):
|
80
|
+
async def handle(self, msg):
|
81
81
|
|
82
82
|
v = msg.value()
|
83
83
|
print(f"Indexing {v.metadata.id}...", flush=True)
|
@@ -104,7 +104,9 @@ class Processor(ConsumerProducer):
|
|
104
104
|
s_value = Value(value=str(s_uri), is_uri=True)
|
105
105
|
o_value = Value(value=str(o), is_uri=False)
|
106
106
|
|
107
|
-
self.emit_edge(
|
107
|
+
await self.emit_edge(
|
108
|
+
v.metadata, s_value, DEFINITION_VALUE, o_value
|
109
|
+
)
|
108
110
|
|
109
111
|
except Exception as e:
|
110
112
|
print("Exception: ", e, flush=True)
|
@@ -133,5 +135,5 @@ class Processor(ConsumerProducer):
|
|
133
135
|
|
134
136
|
def run():
|
135
137
|
|
136
|
-
Processor.
|
138
|
+
Processor.launch(module, __doc__)
|
137
139
|
|
@@ -129,16 +129,16 @@ class Processor(ConsumerProducer):
|
|
129
129
|
t = Rows(
|
130
130
|
metadata=metadata, row_schema=self.row_schema, rows=rows
|
131
131
|
)
|
132
|
-
self.producer.send(t)
|
132
|
+
await self.producer.send(t)
|
133
133
|
|
134
134
|
def emit_vec(self, metadata, name, vec, key_name, key):
|
135
135
|
|
136
136
|
r = ObjectEmbeddings(
|
137
137
|
metadata=metadata, vectors=vec, name=name, key_name=key_name, id=key
|
138
138
|
)
|
139
|
-
self.vec_prod.send(r)
|
139
|
+
await self.vec_prod.send(r)
|
140
140
|
|
141
|
-
def handle(self, msg):
|
141
|
+
async def handle(self, msg):
|
142
142
|
|
143
143
|
v = msg.value()
|
144
144
|
print(f"Indexing {v.metadata.id}...", flush=True)
|
@@ -216,5 +216,5 @@ class Processor(ConsumerProducer):
|
|
216
216
|
|
217
217
|
def run():
|
218
218
|
|
219
|
-
Processor.
|
219
|
+
Processor.launch(module, __doc__)
|
220
220
|
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.21.1"
|
{trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/document_embeddings_load.py
RENAMED
@@ -7,8 +7,8 @@ from aiohttp import WSMsgType
|
|
7
7
|
from .. schema import Metadata
|
8
8
|
from .. schema import DocumentEmbeddings, ChunkEmbeddings
|
9
9
|
from .. schema import document_embeddings_store_queue
|
10
|
+
from .. base import Publisher
|
10
11
|
|
11
|
-
from . publisher import Publisher
|
12
12
|
from . socket import SocketEndpoint
|
13
13
|
from . serialize import to_subgraph
|
14
14
|
|
@@ -59,6 +59,6 @@ class DocumentEmbeddingsLoadEndpoint(SocketEndpoint):
|
|
59
59
|
],
|
60
60
|
)
|
61
61
|
|
62
|
-
self.publisher.send(None, elt)
|
62
|
+
await self.publisher.send(None, elt)
|
63
63
|
|
64
64
|
running.stop()
|
{trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/document_embeddings_stream.py
RENAMED
@@ -6,8 +6,8 @@ import uuid
|
|
6
6
|
|
7
7
|
from .. schema import DocumentEmbeddings
|
8
8
|
from .. schema import document_embeddings_store_queue
|
9
|
+
from .. base import Subscriber
|
9
10
|
|
10
|
-
from . subscriber import Subscriber
|
11
11
|
from . socket import SocketEndpoint
|
12
12
|
from . serialize import serialize_document_embeddings
|
13
13
|
|
@@ -5,8 +5,8 @@ from aiohttp import web
|
|
5
5
|
import uuid
|
6
6
|
import logging
|
7
7
|
|
8
|
-
from
|
9
|
-
from
|
8
|
+
from .. base import Publisher
|
9
|
+
from .. base import Subscriber
|
10
10
|
|
11
11
|
logger = logging.getLogger("endpoint")
|
12
12
|
logger.setLevel(logging.INFO)
|
{trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/graph_embeddings_load.py
RENAMED
@@ -7,8 +7,8 @@ from aiohttp import WSMsgType
|
|
7
7
|
from .. schema import Metadata
|
8
8
|
from .. schema import GraphEmbeddings, EntityEmbeddings
|
9
9
|
from .. schema import graph_embeddings_store_queue
|
10
|
+
from .. base import Publisher
|
10
11
|
|
11
|
-
from . publisher import Publisher
|
12
12
|
from . socket import SocketEndpoint
|
13
13
|
from . serialize import to_subgraph, to_value
|
14
14
|
|
@@ -59,7 +59,7 @@ class GraphEmbeddingsLoadEndpoint(SocketEndpoint):
|
|
59
59
|
]
|
60
60
|
)
|
61
61
|
|
62
|
-
self.publisher.send(None, elt)
|
62
|
+
await self.publisher.send(None, elt)
|
63
63
|
|
64
64
|
|
65
65
|
running.stop()
|
{trustgraph-flow-0.21.0 → trustgraph-flow-0.21.1}/trustgraph/gateway/graph_embeddings_stream.py
RENAMED
@@ -6,8 +6,8 @@ import uuid
|
|
6
6
|
|
7
7
|
from .. schema import GraphEmbeddings
|
8
8
|
from .. schema import graph_embeddings_store_queue
|
9
|
+
from .. base import Subscriber
|
9
10
|
|
10
|
-
from . subscriber import Subscriber
|
11
11
|
from . socket import SocketEndpoint
|
12
12
|
from . serialize import serialize_graph_embeddings
|
13
13
|
|
@@ -0,0 +1,57 @@
|
|
1
|
+
|
2
|
+
from .. schema import LibrarianRequest, LibrarianResponse, Triples
|
3
|
+
from .. schema import librarian_request_queue
|
4
|
+
from .. schema import librarian_response_queue
|
5
|
+
|
6
|
+
from . endpoint import ServiceEndpoint
|
7
|
+
from . requestor import ServiceRequestor
|
8
|
+
from . serialize import serialize_document_package, serialize_document_info
|
9
|
+
from . serialize import to_document_package, to_document_info, to_criteria
|
10
|
+
|
11
|
+
class LibrarianRequestor(ServiceRequestor):
|
12
|
+
def __init__(self, pulsar_host, timeout, auth):
|
13
|
+
|
14
|
+
super(LibrarianRequestor, self).__init__(
|
15
|
+
pulsar_host=pulsar_host,
|
16
|
+
request_queue=librarian_request_queue,
|
17
|
+
response_queue=librarian_response_queue,
|
18
|
+
request_schema=LibrarianRequest,
|
19
|
+
response_schema=LibrarianResponse,
|
20
|
+
timeout=timeout,
|
21
|
+
)
|
22
|
+
|
23
|
+
def to_request(self, body):
|
24
|
+
|
25
|
+
if "document" in body:
|
26
|
+
dp = to_document_package(body["document"])
|
27
|
+
else:
|
28
|
+
dp = None
|
29
|
+
|
30
|
+
if "criteria" in body:
|
31
|
+
criteria = to_criteria(body["criteria"])
|
32
|
+
else:
|
33
|
+
criteria = None
|
34
|
+
|
35
|
+
limit = int(body.get("limit", 10000))
|
36
|
+
|
37
|
+
return LibrarianRequest(
|
38
|
+
operation = body.get("operation", None),
|
39
|
+
id = body.get("id", None),
|
40
|
+
document = dp,
|
41
|
+
user = body.get("user", None),
|
42
|
+
collection = body.get("collection", None),
|
43
|
+
criteria = criteria,
|
44
|
+
)
|
45
|
+
|
46
|
+
def from_response(self, message):
|
47
|
+
|
48
|
+
response = {}
|
49
|
+
|
50
|
+
if message.document:
|
51
|
+
response["document"] = serialize_document_package(message.document)
|
52
|
+
|
53
|
+
if message.info:
|
54
|
+
response["info"] = serialize_document_info(message.info)
|
55
|
+
|
56
|
+
return response, True
|
57
|
+
|
@@ -4,8 +4,8 @@ from pulsar.schema import JsonSchema
|
|
4
4
|
import uuid
|
5
5
|
import logging
|
6
6
|
|
7
|
-
from
|
8
|
-
from
|
7
|
+
from .. base import Publisher
|
8
|
+
from .. base import Subscriber
|
9
9
|
|
10
10
|
logger = logging.getLogger("requestor")
|
11
11
|
logger.setLevel(logging.INFO)
|
@@ -68,7 +68,10 @@ class ServiceRequestor:
|
|
68
68
|
raise RuntimeError("Timeout")
|
69
69
|
|
70
70
|
if resp.error:
|
71
|
-
err = { "error":
|
71
|
+
err = { "error": {
|
72
|
+
"type": resp.error.type,
|
73
|
+
"message": resp.error.message,
|
74
|
+
} }
|
72
75
|
if responder:
|
73
76
|
await responder(err, True)
|
74
77
|
return err
|
@@ -87,7 +90,10 @@ class ServiceRequestor:
|
|
87
90
|
|
88
91
|
logging.error(f"Exception: {e}")
|
89
92
|
|
90
|
-
err = { "error":
|
93
|
+
err = { "error": {
|
94
|
+
"type": "gateway-error",
|
95
|
+
"message": str(e),
|
96
|
+
} }
|
91
97
|
if responder:
|
92
98
|
await responder(err, True)
|
93
99
|
return err
|