langchain
f8d69e4e - Enhancement: Blockchain Document Loader with better Metadata support (#3710)

Commit
3 years ago
Enhancement: Blockchain Document Loader with better Metadata support (#3710) This PR includes some minor alignment updates, including: - metadata object extended to support contractAddress, blockchainType, and tokenId - notebook doc better aligned to standard langchain format - startToken changed from int to str to support multiple hex value types on the Alchemy API The updated metadata will look like the below. It's possible for a single contractAddress to exist across multiple blockchains (e.g. Ethereum, Polygon, etc.) so it's important to include the blockchainType. ``` metadata = {"source": self.contract_address, "blockchain": self.blockchainType, "tokenId": tokenId} ```
Author
Parents
Loading