Inspiration
In today's age, all of our daily products are made in companies thousands of miles away. Before hyper-globalization, everyone's daily products were made locally, and you knew where your things were sourced from. We wanted to bring users awareness of their purchases and a higher level of connectedness to the places where their things come from.
What it does
The website integrates your personalized values through sliders determined by the user. Any of the companies you spend with are analyzed based on how they value labor and workers, the environment, animal welfare, local community, and privacy. A summary is then provided on how aligned you are with your values compared to the companies that you purchase from.
The website also pulls companies from your purchase history and places their suppliers on a map of where your objects are sourced from. Wikipedia articles are linked to each location as interesting facts in order to connect the user to the people from where you bought your products.
How we built it
This project was built with a FastAPI backend and a React frontend.
We used Nessie from Capital One to fetch our financial data, which includes customers, merchants, accounts, transactions, and more. Merchants that have been purchased from are analyzed using the Gemini API. Gemini researches relevant ethical information about the company, forming claims about the company and aggregating sources that relate to said claims. This is handed off to another call to Gemini (the judge), which determines if the claims are relevant based on the sources provided. It will tweak the claims based on its judgment, create a verdict, and return a quote supporting the claim. The code then checks the verdict and checks if the company name and quote are present in the source. Once this is finished, the verdict and source are validated. Claims that failed this validation are deleted, and the ones that survive are given a score tiered on severity, source, and recency. Finally, these scores are weighted on the user's values to determine if the user "aligns" with the company.
Public databases such as the Department of Labor, OSHA, NRLB, and EPA were referenced for their information on specific companies to see if there were any lawsuits or violations.
Company manufacturer data was sourced from an API called ImportYeti, which provides us supplier sources through public freight shipment info. The Company's manufacturer's precise address is then converted into coordinates and plugged into Wikipedia's free Geosearch API, which provides nearby Wikipedia articles on any given coordinate.
Challenges we ran into
Managing so many different APIs was difficult for reasons such as rate limiting and tokens running out. We wanted to find free or reliable APIs that could allow this project to continue to exist past this hackathon. Also, designing a pipeline centered around AI output was difficult to validate.
Accomplishments that we're proud of
We are proud of having integrated so many different information sources and real reliable databases, along with using AI for reasoning. We were able to elegantly juggle multiple different information sources all into one project. We're even more proud that we created a tool for the average consumer to interpret their finances in a brand new way.
What we learned
In this project we learned how to efficiently use multiple data types in conjunction with AI to build a reasoning pipeline. Validating potentially untrustworthy AI output was a big part of this project as well, along with properly weighting the scores. We also learned how to design a user interface that utilizes a heavy slow back end that doesn't lag the front end.
What's next for Accountable
We want to truly integrate different banking apps so the user base is not restricted to only Capital One. An importer where you could add your spending history could be a potential option. Further fine-tuning could be done to the research pipeline as well.
Built With
- fastapi
- gemini
- mongodb
- nessie
- python
- react
- typescript