trustgraph-flow 0.21.3__tar.gz → 0.21.4__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.3 → trustgraph-flow-0.21.4}/PKG-INFO +2 -2
- trustgraph-flow-0.21.4/trustgraph/flow_version.py +1 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/librarian.py +4 -1
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/serialize.py +28 -5
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/librarian/librarian.py +18 -4
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/librarian/service.py +22 -7
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/librarian/table_store.py +86 -7
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph_flow.egg-info/PKG-INFO +2 -2
- trustgraph-flow-0.21.3/trustgraph/flow_version.py +0 -1
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/README.md +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/agent-manager-react +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/api-gateway +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/chunker-recursive +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/chunker-token +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/de-query-milvus +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/de-query-pinecone +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/de-query-qdrant +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/de-write-milvus +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/de-write-pinecone +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/de-write-qdrant +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/document-embeddings +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/document-rag +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/embeddings-fastembed +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/embeddings-ollama +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/ge-query-milvus +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/ge-query-pinecone +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/ge-query-qdrant +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/ge-write-milvus +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/ge-write-pinecone +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/ge-write-qdrant +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/graph-embeddings +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/graph-rag +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/kg-extract-definitions +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/kg-extract-relationships +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/kg-extract-topics +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/librarian +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/metering +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/object-extract-row +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/oe-write-milvus +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/pdf-decoder +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/prompt-generic +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/prompt-template +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/rows-write-cassandra +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/run-processing +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/text-completion-azure +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/text-completion-azure-openai +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/text-completion-claude +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/text-completion-cohere +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/text-completion-googleaistudio +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/text-completion-llamafile +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/text-completion-ollama +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/text-completion-openai +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/triples-query-cassandra +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/triples-query-falkordb +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/triples-query-memgraph +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/triples-query-neo4j +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/triples-write-cassandra +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/triples-write-falkordb +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/triples-write-memgraph +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/triples-write-neo4j +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/scripts/wikipedia-lookup +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/setup.cfg +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/setup.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/agent/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/agent/react/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/agent/react/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/agent/react/agent_manager.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/agent/react/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/agent/react/tools.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/agent/react/types.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/chunking/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/chunking/recursive/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/chunking/recursive/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/chunking/recursive/chunker.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/chunking/token/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/chunking/token/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/chunking/token/chunker.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/decoding/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/decoding/pdf/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/decoding/pdf/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/decoding/pdf/pdf_decoder.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/direct/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/direct/cassandra.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/direct/milvus_doc_embeddings.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/direct/milvus_graph_embeddings.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/direct/milvus_object_embeddings.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/document_rag.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/document_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/document_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/document_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/fastembed/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/fastembed/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/fastembed/processor.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/graph_embeddings/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/graph_embeddings/embeddings.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/ollama/processor.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/external/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/external/wikipedia/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/external/wikipedia/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/external/wikipedia/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/definitions/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/definitions/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/definitions/extract.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/relationships/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/relationships/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/relationships/extract.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/topics/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/topics/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/kg/topics/extract.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/object/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/object/row/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/object/row/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/extract/object/row/extract.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/agent.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/auth.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/dbpedia.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/document_embeddings_load.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/document_embeddings_stream.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/document_load.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/document_rag.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/embeddings.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/encyclopedia.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/endpoint.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/graph_embeddings_load.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/graph_embeddings_query.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/graph_embeddings_stream.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/graph_rag.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/internet_search.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/metrics.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/mux.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/prompt.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/requestor.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/running.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/sender.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/socket.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/text_completion.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/text_load.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/triples_load.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/triples_query.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/gateway/triples_stream.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/graph_rag.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/librarian/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/librarian/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/librarian/blob_store.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/metering/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/metering/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/metering/counter.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/metering/pricelist.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/generic/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/generic/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/generic/prompts.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/generic/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/template/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/template/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/template/prompt_manager.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/prompt/template/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/azure/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/azure/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/azure/llm.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/azure_openai/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/azure_openai/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/azure_openai/llm.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/claude/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/claude/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/claude/llm.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/cohere/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/cohere/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/cohere/llm.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/googleaistudio/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/googleaistudio/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/googleaistudio/llm.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/llamafile/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/llamafile/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/llamafile/llm.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/ollama/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/ollama/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/ollama/llm.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/openai/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/openai/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/model/text_completion/openai/llm.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/processing/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/processing/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/processing/processing.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/doc_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/milvus/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/pinecone/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/graph_embeddings/qdrant/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/cassandra/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/falkordb/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/memgraph/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/query/triples/neo4j/service.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/retrieval/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/retrieval/document_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/retrieval/document_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/retrieval/document_rag/rag.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/retrieval/graph_rag/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/retrieval/graph_rag/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/retrieval/graph_rag/rag.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/doc_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/pinecone/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/pinecone/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/pinecone/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/qdrant/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/qdrant/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/graph_embeddings/qdrant/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/object_embeddings/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/object_embeddings/milvus/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/object_embeddings/milvus/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/object_embeddings/milvus/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/rows/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/rows/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/rows/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/rows/cassandra/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/cassandra/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/cassandra/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/cassandra/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/falkordb/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/falkordb/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/falkordb/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/memgraph/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/memgraph/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/memgraph/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/neo4j/__init__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/neo4j/__main__.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/storage/triples/neo4j/write.py +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph_flow.egg-info/SOURCES.txt +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph_flow.egg-info/dependency_links.txt +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph_flow.egg-info/requires.txt +0 -0
- {trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/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.4
|
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.4.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.21.4"
|
@@ -53,7 +53,10 @@ class LibrarianRequestor(ServiceRequestor):
|
|
53
53
|
response["document"] = serialize_document_package(message.document)
|
54
54
|
|
55
55
|
if message.info:
|
56
|
-
response["info"] =
|
56
|
+
response["info"] = [
|
57
|
+
serialize_document_info(v)
|
58
|
+
for v in message.info
|
59
|
+
]
|
57
60
|
|
58
61
|
return response, True
|
59
62
|
|
@@ -84,6 +84,9 @@ def serialize_document_package(message):
|
|
84
84
|
|
85
85
|
ret = {}
|
86
86
|
|
87
|
+
if message.id:
|
88
|
+
ret["id"] = message.id
|
89
|
+
|
87
90
|
if message.metadata:
|
88
91
|
ret["metadata"] = serialize_subgraph(message.metdata)
|
89
92
|
|
@@ -108,8 +111,8 @@ def serialize_document_info(message):
|
|
108
111
|
|
109
112
|
ret = {}
|
110
113
|
|
111
|
-
if message.
|
112
|
-
ret["
|
114
|
+
if message.id:
|
115
|
+
ret["id"] = message.id
|
113
116
|
|
114
117
|
if message.kind:
|
115
118
|
ret["kind"] = message.kind
|
@@ -120,25 +123,45 @@ def serialize_document_info(message):
|
|
120
123
|
if message.collection:
|
121
124
|
ret["collection"] = message.collection
|
122
125
|
|
126
|
+
if message.title:
|
127
|
+
ret["title"] = message.title
|
128
|
+
|
129
|
+
if message.comments:
|
130
|
+
ret["comments"] = message.comments
|
131
|
+
|
132
|
+
if message.time:
|
133
|
+
ret["time"] = message.time
|
134
|
+
|
135
|
+
if message.metadata:
|
136
|
+
ret["metadata"] = serialize_subgraph(message.metadata)
|
137
|
+
|
123
138
|
return ret
|
124
139
|
|
125
140
|
def to_document_package(x):
|
126
141
|
|
127
142
|
return DocumentPackage(
|
128
|
-
|
129
|
-
document = x.get("document", None),
|
143
|
+
id = x.get("id", None),
|
130
144
|
kind = x.get("kind", None),
|
131
145
|
user = x.get("user", None),
|
132
146
|
collection = x.get("collection", None),
|
147
|
+
title = x.get("title", None),
|
148
|
+
comments = x.get("comments", None),
|
149
|
+
time = x.get("time", None),
|
150
|
+
document = x.get("document", None),
|
151
|
+
metadata = to_subgraph(x["metadata"]),
|
133
152
|
)
|
134
153
|
|
135
154
|
def to_document_info(x):
|
136
155
|
|
137
156
|
return DocumentInfo(
|
138
|
-
|
157
|
+
id = x.get("id", None),
|
139
158
|
kind = x.get("kind", None),
|
140
159
|
user = x.get("user", None),
|
141
160
|
collection = x.get("collection", None),
|
161
|
+
title = x.get("title", None),
|
162
|
+
comments = x.get("comments", None),
|
163
|
+
time = x.get("time", None),
|
164
|
+
metadata = to_subgraph(x["metadata"]),
|
142
165
|
)
|
143
166
|
|
144
167
|
def to_criteria(x):
|
@@ -1,4 +1,4 @@
|
|
1
|
-
from .. schema import LibrarianRequest, LibrarianResponse, Error
|
1
|
+
from .. schema import LibrarianRequest, LibrarianResponse, Error, Triple
|
2
2
|
from .. knowledge import hash
|
3
3
|
from .. exceptions import RequestError
|
4
4
|
from . table_store import TableStore
|
@@ -26,7 +26,7 @@ class Librarian:
|
|
26
26
|
self.load_document = load_document
|
27
27
|
self.load_text = load_text
|
28
28
|
|
29
|
-
async def add(self,
|
29
|
+
async def add(self, document):
|
30
30
|
|
31
31
|
if document.kind not in (
|
32
32
|
"text/plain", "application/pdf"
|
@@ -41,9 +41,9 @@ class Librarian:
|
|
41
41
|
self.table_store.add(object_id, document)
|
42
42
|
|
43
43
|
if document.kind == "application/pdf":
|
44
|
-
await self.load_document(
|
44
|
+
await self.load_document(document)
|
45
45
|
elif document.kind == "text/plain":
|
46
|
-
await self.load_text(
|
46
|
+
await self.load_text(document)
|
47
47
|
|
48
48
|
print("Add complete", flush=True)
|
49
49
|
|
@@ -53,6 +53,20 @@ class Librarian:
|
|
53
53
|
info = None,
|
54
54
|
)
|
55
55
|
|
56
|
+
async def list(self, user, collection):
|
57
|
+
|
58
|
+
print("list")
|
59
|
+
|
60
|
+
info = self.table_store.list(user, collection)
|
61
|
+
|
62
|
+
print(">>", info)
|
63
|
+
|
64
|
+
return LibrarianResponse(
|
65
|
+
error = None,
|
66
|
+
document = None,
|
67
|
+
info = info,
|
68
|
+
)
|
69
|
+
|
56
70
|
def handle_triples(self, m):
|
57
71
|
self.table_store.add_triples(m)
|
58
72
|
|
@@ -223,11 +223,11 @@ class Processor(ConsumerProducer):
|
|
223
223
|
|
224
224
|
self.librarian.handle_document_embeddings(msg)
|
225
225
|
|
226
|
-
async def load_document(self,
|
226
|
+
async def load_document(self, document):
|
227
227
|
|
228
228
|
doc = Document(
|
229
229
|
metadata = Metadata(
|
230
|
-
id = id,
|
230
|
+
id = document.id,
|
231
231
|
metadata = document.metadata,
|
232
232
|
user = document.user,
|
233
233
|
collection = document.collection
|
@@ -237,14 +237,14 @@ class Processor(ConsumerProducer):
|
|
237
237
|
|
238
238
|
self.document_load.send(None, doc)
|
239
239
|
|
240
|
-
async def load_text(self,
|
240
|
+
async def load_text(self, document):
|
241
241
|
|
242
242
|
text = base64.b64decode(document.document)
|
243
243
|
text = text.decode("utf-8")
|
244
244
|
|
245
245
|
doc = TextDocument(
|
246
246
|
metadata = Metadata(
|
247
|
-
id = id,
|
247
|
+
id = document.id,
|
248
248
|
metadata = document.metadata,
|
249
249
|
user = document.user,
|
250
250
|
collection = document.collection
|
@@ -259,19 +259,33 @@ class Processor(ConsumerProducer):
|
|
259
259
|
if v.operation is None:
|
260
260
|
raise RequestError("Null operation")
|
261
261
|
|
262
|
+
print("op", v.operation)
|
263
|
+
|
262
264
|
if v.operation == "add":
|
263
265
|
if (
|
264
|
-
v.
|
266
|
+
v.document and v.document.id and v.document.metadata and
|
265
267
|
v.document.document and v.document.kind
|
266
268
|
):
|
267
269
|
return partial(
|
268
270
|
self.librarian.add,
|
269
|
-
id = v.id,
|
270
271
|
document = v.document,
|
271
272
|
)
|
272
273
|
else:
|
273
274
|
raise RequestError("Invalid call")
|
274
275
|
|
276
|
+
if v.operation == "list":
|
277
|
+
print("list", v)
|
278
|
+
print(v.user)
|
279
|
+
if v.user:
|
280
|
+
return partial(
|
281
|
+
self.librarian.list,
|
282
|
+
user = v.user,
|
283
|
+
collection = v.collection,
|
284
|
+
)
|
285
|
+
else:
|
286
|
+
print("BROK")
|
287
|
+
raise RequestError("Invalid call")
|
288
|
+
|
275
289
|
raise RequestError("Invalid operation: " + v.operation)
|
276
290
|
|
277
291
|
async def handle(self, msg):
|
@@ -298,6 +312,7 @@ class Processor(ConsumerProducer):
|
|
298
312
|
|
299
313
|
try:
|
300
314
|
resp = await func()
|
315
|
+
print("->", resp)
|
301
316
|
except RequestError as e:
|
302
317
|
resp = LibrarianResponse(
|
303
318
|
error = Error(
|
@@ -318,7 +333,7 @@ class Processor(ConsumerProducer):
|
|
318
333
|
await self.send(resp, properties={"id": id})
|
319
334
|
return
|
320
335
|
|
321
|
-
print("Send response
|
336
|
+
print("Send response..!.", flush=True)
|
322
337
|
|
323
338
|
await self.send(resp, properties={"id": id})
|
324
339
|
|
@@ -1,4 +1,5 @@
|
|
1
|
-
from .. schema import LibrarianRequest, LibrarianResponse
|
1
|
+
from .. schema import LibrarianRequest, LibrarianResponse
|
2
|
+
from .. schema import DocumentInfo, Error, Triple, Value
|
2
3
|
from .. knowledge import hash
|
3
4
|
from .. exceptions import RequestError
|
4
5
|
|
@@ -61,7 +62,7 @@ class TableStore:
|
|
61
62
|
CREATE TABLE IF NOT EXISTS document (
|
62
63
|
user text,
|
63
64
|
collection text,
|
64
|
-
id
|
65
|
+
id text,
|
65
66
|
time timestamp,
|
66
67
|
title text,
|
67
68
|
comments text,
|
@@ -157,6 +158,20 @@ class TableStore:
|
|
157
158
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
158
159
|
""")
|
159
160
|
|
161
|
+
self.list_document_stmt = self.cassandra.prepare("""
|
162
|
+
SELECT
|
163
|
+
id, kind, user, collection, title, comments, time, metadata
|
164
|
+
FROM document
|
165
|
+
WHERE user = ?
|
166
|
+
""")
|
167
|
+
|
168
|
+
self.list_document_by_collection_stmt = self.cassandra.prepare("""
|
169
|
+
SELECT
|
170
|
+
id, kind, user, collection, title, comments, time, metadata
|
171
|
+
FROM document
|
172
|
+
WHERE user = ? AND collection = ?
|
173
|
+
""")
|
174
|
+
|
160
175
|
self.insert_triples_stmt = self.cassandra.prepare("""
|
161
176
|
INSERT INTO triples
|
162
177
|
(
|
@@ -192,10 +207,9 @@ class TableStore:
|
|
192
207
|
raise RequestError("Invalid document kind: " + document.kind)
|
193
208
|
|
194
209
|
# Create random doc ID
|
195
|
-
doc_id = uuid.uuid4()
|
196
210
|
when = int(time.time() * 1000)
|
197
211
|
|
198
|
-
print("Adding",
|
212
|
+
print("Adding", document.id, object_id)
|
199
213
|
|
200
214
|
metadata = [
|
201
215
|
(
|
@@ -205,8 +219,6 @@ class TableStore:
|
|
205
219
|
for v in document.metadata
|
206
220
|
]
|
207
221
|
|
208
|
-
# FIXME: doc_id should be the user-supplied ID???
|
209
|
-
|
210
222
|
while True:
|
211
223
|
|
212
224
|
try:
|
@@ -214,7 +226,7 @@ class TableStore:
|
|
214
226
|
resp = self.cassandra.execute(
|
215
227
|
self.insert_document_stmt,
|
216
228
|
(
|
217
|
-
|
229
|
+
document.id, document.user, document.collection,
|
218
230
|
document.kind, object_id, when,
|
219
231
|
document.title, document.comments,
|
220
232
|
metadata
|
@@ -275,6 +287,73 @@ class TableStore:
|
|
275
287
|
print(f"{e}, retry...", flush=True)
|
276
288
|
time.sleep(1)
|
277
289
|
|
290
|
+
def list(self, user, collection=None):
|
291
|
+
|
292
|
+
print("LIST")
|
293
|
+
while True:
|
294
|
+
|
295
|
+
print("TRY")
|
296
|
+
|
297
|
+
print(self.list_document_stmt)
|
298
|
+
try:
|
299
|
+
|
300
|
+
if collection:
|
301
|
+
resp = self.cassandra.execute(
|
302
|
+
self.list_document_by_collection_stmt,
|
303
|
+
(user, collection)
|
304
|
+
)
|
305
|
+
else:
|
306
|
+
resp = self.cassandra.execute(
|
307
|
+
self.list_document_stmt,
|
308
|
+
(user,)
|
309
|
+
)
|
310
|
+
break
|
311
|
+
|
312
|
+
print("OK")
|
313
|
+
|
314
|
+
except Exception as e:
|
315
|
+
print("Exception:", type(e))
|
316
|
+
print(f"{e}, retry...", flush=True)
|
317
|
+
time.sleep(1)
|
318
|
+
|
319
|
+
print("OK2")
|
320
|
+
|
321
|
+
info = [
|
322
|
+
DocumentInfo(
|
323
|
+
id = row[0],
|
324
|
+
kind = row[1],
|
325
|
+
user = row[2],
|
326
|
+
collection = row[3],
|
327
|
+
title = row[4],
|
328
|
+
comments = row[5],
|
329
|
+
time = int(1000 * row[6].timestamp()),
|
330
|
+
metadata = [
|
331
|
+
Triple(
|
332
|
+
s=Value(value=m[0], is_uri=m[1]),
|
333
|
+
p=Value(value=m[2], is_uri=m[3]),
|
334
|
+
o=Value(value=m[4], is_uri=m[5])
|
335
|
+
)
|
336
|
+
for m in row[7]
|
337
|
+
],
|
338
|
+
)
|
339
|
+
for row in resp
|
340
|
+
]
|
341
|
+
|
342
|
+
print("OK3")
|
343
|
+
|
344
|
+
print(info[0])
|
345
|
+
|
346
|
+
print(info[0].user)
|
347
|
+
print(info[0].time)
|
348
|
+
print(info[0].kind)
|
349
|
+
print(info[0].collection)
|
350
|
+
print(info[0].title)
|
351
|
+
print(info[0].comments)
|
352
|
+
print(info[0].metadata)
|
353
|
+
print(info[0].metadata)
|
354
|
+
|
355
|
+
return info
|
356
|
+
|
278
357
|
def add_graph_embeddings(self, m):
|
279
358
|
|
280
359
|
when = int(time.time() * 1000)
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-flow
|
3
|
-
Version: 0.21.
|
3
|
+
Version: 0.21.4
|
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.4.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.21.3"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/direct/milvus_doc_embeddings.py
RENAMED
File without changes
|
{trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/direct/milvus_graph_embeddings.py
RENAMED
File without changes
|
{trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/direct/milvus_object_embeddings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/fastembed/__init__.py
RENAMED
File without changes
|
{trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/fastembed/__main__.py
RENAMED
File without changes
|
{trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/fastembed/processor.py
RENAMED
File without changes
|
{trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/graph_embeddings/__init__.py
RENAMED
File without changes
|
{trustgraph-flow-0.21.3 → trustgraph-flow-0.21.4}/trustgraph/embeddings/graph_embeddings/__main__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|