Expand description
Remote Knowledge Retrieval and Distributed Reasoning
This module provides protocols and interfaces for distributed reasoning across a network of IPFS nodes. It defines the abstractions needed for:
- Remote predicate lookup
- Fact discovery from network peers
- Incremental fact loading
- Distributed goal resolution
- Proof assembly from distributed fragments
§Architecture
The remote reasoning system is designed to work with ipfrs-network once integrated. The traits defined here provide the interface that network implementations will satisfy.
§Example
ⓘ
use ipfrs_tensorlogic::{RemoteKnowledgeProvider, QueryRequest};
// Once ipfrs-network is integrated:
let provider = NetworkKnowledgeProvider::new(network_client);
let results = provider.query_predicate("parent", vec!["Alice"]).await?;Structs§
- Distributed
Goal Resolver - Distributed goal resolver
- Distributed
Proof Assembler - Proof assembler for distributed proofs
- Fact
Discovery Request - Fact discovery request for network-wide search
- Fact
Discovery Response - Fact discovery response
- Goal
Resolution Request - Goal resolution request for distributed solving
- Goal
Resolution Response - Goal resolution response
- Incremental
Load Request - Incremental loading request for streaming facts
- Incremental
Load Response - Incremental loading response
- Mock
Remote Knowledge Provider - Mock implementation for testing (will be replaced with network implementation)
- Query
Request - Query request for remote predicate lookup
- Query
Response - Query response containing facts from remote peer
Enums§
- Remote
Reasoning Error - Errors that can occur during remote reasoning
Traits§
- Remote
Knowledge Provider - Trait for remote knowledge retrieval