trustgraph-flow 0.21.0__tar.gz → 0.21.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/PKG-INFO +2 -2
- trustgraph-flow-0.21.2/scripts/librarian +6 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/setup.py +3 -1
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/agent/react/service.py +7 -7
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/chunking/recursive/chunker.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/chunking/token/chunker.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/decoding/pdf/pdf_decoder.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/document_embeddings/embeddings.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/fastembed/processor.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/graph_embeddings/embeddings.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/ollama/processor.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/external/wikipedia/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/definitions/extract.py +7 -7
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/relationships/extract.py +5 -5
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/topics/extract.py +7 -5
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/object/row/extract.py +4 -4
- trustgraph-flow-0.21.2/trustgraph/flow_version.py +1 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/agent.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/dbpedia.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/document_embeddings_load.py +5 -5
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/document_embeddings_stream.py +5 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/document_load.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/document_rag.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/embeddings.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/encyclopedia.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/endpoint.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/graph_embeddings_load.py +5 -5
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/graph_embeddings_query.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/graph_embeddings_stream.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/graph_rag.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/internet_search.py +2 -2
- trustgraph-flow-0.21.2/trustgraph/gateway/librarian.py +59 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/mux.py +1 -1
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/prompt.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/requestor.py +16 -8
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/sender.py +4 -5
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/serialize.py +70 -1
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/service.py +39 -22
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/text_completion.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/text_load.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/triples_load.py +5 -5
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/triples_query.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/triples_stream.py +4 -4
- trustgraph-flow-0.21.2/trustgraph/librarian/blob_store.py +51 -0
- trustgraph-flow-0.21.2/trustgraph/librarian/librarian.py +74 -0
- trustgraph-flow-0.21.2/trustgraph/librarian/service.py +409 -0
- trustgraph-flow-0.21.2/trustgraph/librarian/table_store.py +366 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/metering/counter.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/prompt/generic/service.py +26 -26
- trustgraph-flow-0.21.2/trustgraph/model/prompt/template/__main__.py +7 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/prompt/template/service.py +6 -6
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/azure/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/azure_openai/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/claude/llm.py +3 -3
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/cohere/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/googleaistudio/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/llamafile/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/ollama/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/openai/llm.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/doc_embeddings/milvus/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/doc_embeddings/pinecone/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/doc_embeddings/qdrant/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/graph_embeddings/milvus/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/graph_embeddings/pinecone/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/graph_embeddings/qdrant/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/cassandra/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/falkordb/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/memgraph/service.py +4 -4
- trustgraph-flow-0.21.2/trustgraph/query/triples/neo4j/__init__.py +3 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/neo4j/service.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/retrieval/document_rag/rag.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/retrieval/graph_rag/rag.py +4 -4
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/milvus/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/pinecone/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/qdrant/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/milvus/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/pinecone/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/qdrant/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/object_embeddings/milvus/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/rows/cassandra/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/cassandra/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/falkordb/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/memgraph/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/neo4j/write.py +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph_flow.egg-info/SOURCES.txt +8 -2
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/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.2}/README.md +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/api-gateway +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/chunker-token +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/document-embeddings +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/document-rag +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/graph-rag +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/metering +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/object-extract-row +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/prompt-generic +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/prompt-template +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/run-processing +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/setup.cfg +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/document_rag.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/metrics.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/socket.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/graph_rag.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/model/prompt/generic → trustgraph-flow-0.21.2/trustgraph/librarian}/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/model/prompt/generic → trustgraph-flow-0.21.2/trustgraph/librarian}/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/metering/pricelist.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/model/prompt/template → trustgraph-flow-0.21.2/trustgraph/model/prompt/generic}/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/model/prompt/template → trustgraph-flow-0.21.2/trustgraph/model/prompt/generic}/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/doc_embeddings/milvus → trustgraph-flow-0.21.2/trustgraph/model/prompt/template}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/doc_embeddings/pinecone → trustgraph-flow-0.21.2/trustgraph/query/doc_embeddings/milvus}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/doc_embeddings/qdrant → trustgraph-flow-0.21.2/trustgraph/query/doc_embeddings/pinecone}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/graph_embeddings/milvus → trustgraph-flow-0.21.2/trustgraph/query/doc_embeddings/qdrant}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/graph_embeddings/pinecone → trustgraph-flow-0.21.2/trustgraph/query/graph_embeddings/milvus}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/graph_embeddings/qdrant → trustgraph-flow-0.21.2/trustgraph/query/graph_embeddings/pinecone}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/triples/cassandra → trustgraph-flow-0.21.2/trustgraph/query/graph_embeddings/qdrant}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/triples/falkordb → trustgraph-flow-0.21.2/trustgraph/query/triples/cassandra}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/triples/memgraph → trustgraph-flow-0.21.2/trustgraph/query/triples/falkordb}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.0/trustgraph/query/triples/neo4j → trustgraph-flow-0.21.2/trustgraph/query/triples/memgraph}/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph_flow.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 0.21.
|
3
|
+
Version: 0.21.2
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.2.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.2}/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.2}/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.2}/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.2"
|
@@ -7,10 +7,10 @@ from . endpoint import ServiceEndpoint
|
|
7
7
|
from . requestor import ServiceRequestor
|
8
8
|
|
9
9
|
class AgentRequestor(ServiceRequestor):
|
10
|
-
def __init__(self,
|
10
|
+
def __init__(self, pulsar_client, timeout, auth):
|
11
11
|
|
12
12
|
super(AgentRequestor, self).__init__(
|
13
|
-
|
13
|
+
pulsar_client=pulsar_client,
|
14
14
|
request_queue=agent_request_queue,
|
15
15
|
response_queue=agent_response_queue,
|
16
16
|
request_schema=AgentRequest,
|
@@ -7,10 +7,10 @@ from . endpoint import ServiceEndpoint
|
|
7
7
|
from . requestor import ServiceRequestor
|
8
8
|
|
9
9
|
class DbpediaRequestor(ServiceRequestor):
|
10
|
-
def __init__(self,
|
10
|
+
def __init__(self, pulsar_client, timeout, auth):
|
11
11
|
|
12
12
|
super(DbpediaRequestor, self).__init__(
|
13
|
-
|
13
|
+
pulsar_client=pulsar_client,
|
14
14
|
request_queue=dbpedia_lookup_request_queue,
|
15
15
|
response_queue=dbpedia_lookup_response_queue,
|
16
16
|
request_schema=LookupRequest,
|
{trustgraph-flow-0.21.0 → trustgraph-flow-0.21.2}/trustgraph/gateway/document_embeddings_load.py
RENAMED
@@ -7,25 +7,25 @@ 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
|
|
15
15
|
class DocumentEmbeddingsLoadEndpoint(SocketEndpoint):
|
16
16
|
|
17
17
|
def __init__(
|
18
|
-
self,
|
18
|
+
self, pulsar_client, auth, path="/api/v1/load/document-embeddings",
|
19
19
|
):
|
20
20
|
|
21
21
|
super(DocumentEmbeddingsLoadEndpoint, self).__init__(
|
22
22
|
endpoint_path=path, auth=auth,
|
23
23
|
)
|
24
24
|
|
25
|
-
self.
|
25
|
+
self.pulsar_client=pulsar_client
|
26
26
|
|
27
27
|
self.publisher = Publisher(
|
28
|
-
self.
|
28
|
+
self.pulsar_client, document_embeddings_store_queue,
|
29
29
|
schema=JsonSchema(DocumentEmbeddings)
|
30
30
|
)
|
31
31
|
|
@@ -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.2}/trustgraph/gateway/document_embeddings_stream.py
RENAMED
@@ -6,25 +6,26 @@ 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
|
|
14
14
|
class DocumentEmbeddingsStreamEndpoint(SocketEndpoint):
|
15
15
|
|
16
16
|
def __init__(
|
17
|
-
self,
|
17
|
+
self, pulsar_client, auth,
|
18
|
+
path="/api/v1/stream/document-embeddings"
|
18
19
|
):
|
19
20
|
|
20
21
|
super(DocumentEmbeddingsStreamEndpoint, self).__init__(
|
21
22
|
endpoint_path=path, auth=auth,
|
22
23
|
)
|
23
24
|
|
24
|
-
self.
|
25
|
+
self.pulsar_client=pulsar_client
|
25
26
|
|
26
27
|
self.subscriber = Subscriber(
|
27
|
-
self.
|
28
|
+
self.pulsar_client, document_embeddings_store_queue,
|
28
29
|
"api-gateway", "api-gateway",
|
29
30
|
schema=JsonSchema(DocumentEmbeddings)
|
30
31
|
)
|
@@ -8,10 +8,10 @@ from . sender import ServiceSender
|
|
8
8
|
from . serialize import to_subgraph
|
9
9
|
|
10
10
|
class DocumentLoadSender(ServiceSender):
|
11
|
-
def __init__(self,
|
11
|
+
def __init__(self, pulsar_client):
|
12
12
|
|
13
13
|
super(DocumentLoadSender, self).__init__(
|
14
|
-
|
14
|
+
pulsar_client=pulsar_client,
|
15
15
|
request_queue=document_ingest_queue,
|
16
16
|
request_schema=Document,
|
17
17
|
)
|
@@ -7,10 +7,10 @@ from . endpoint import ServiceEndpoint
|
|
7
7
|
from . requestor import ServiceRequestor
|
8
8
|
|
9
9
|
class DocumentRagRequestor(ServiceRequestor):
|
10
|
-
def __init__(self,
|
10
|
+
def __init__(self, pulsar_client, timeout, auth):
|
11
11
|
|
12
12
|
super(DocumentRagRequestor, self).__init__(
|
13
|
-
|
13
|
+
pulsar_client=pulsar_client,
|
14
14
|
request_queue=document_rag_request_queue,
|
15
15
|
response_queue=document_rag_response_queue,
|
16
16
|
request_schema=DocumentRagQuery,
|
@@ -7,10 +7,10 @@ from . endpoint import ServiceEndpoint
|
|
7
7
|
from . requestor import ServiceRequestor
|
8
8
|
|
9
9
|
class EmbeddingsRequestor(ServiceRequestor):
|
10
|
-
def __init__(self,
|
10
|
+
def __init__(self, pulsar_client, timeout, auth):
|
11
11
|
|
12
12
|
super(EmbeddingsRequestor, self).__init__(
|
13
|
-
|
13
|
+
pulsar_client=pulsar_client,
|
14
14
|
request_queue=embeddings_request_queue,
|
15
15
|
response_queue=embeddings_response_queue,
|
16
16
|
request_schema=EmbeddingsRequest,
|
@@ -7,10 +7,10 @@ from . endpoint import ServiceEndpoint
|
|
7
7
|
from . requestor import ServiceRequestor
|
8
8
|
|
9
9
|
class EncyclopediaRequestor(ServiceRequestor):
|
10
|
-
def __init__(self,
|
10
|
+
def __init__(self, pulsar_client, timeout, auth):
|
11
11
|
|
12
12
|
super(EncyclopediaRequestor, self).__init__(
|
13
|
-
|
13
|
+
pulsar_client=pulsar_client,
|
14
14
|
request_queue=encyclopedia_lookup_request_queue,
|
15
15
|
response_queue=encyclopedia_lookup_response_queue,
|
16
16
|
request_schema=LookupRequest,
|
@@ -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)
|