Using decentralized AI to flexibly visualize DeFi data based on user prompt using the Uniswap Subgraph hosted on the Phala Network
The project uses Langchain hosted on Phala Network to transform user prompt into the necessary query string, which is then used to query DeFi data from the Uniswap Subgraph. This data retrieved from the subgraph is then displayed as the appropriate chart determined by the Langchain AI.
This project uses Langchain-TS to process the natural language into a set of parameters that could be used to query the necessary data that the user wants. The Langchain AI agent and the server are both hosted on the testnet Phala Network, which makes the entire application decentralized and allows the users to visualize complex queries.