OpenFoodTox is your go-to resource for understanding chemical hazards in food. It's an open-source database filled with toxicological information, accessible to everyone. And now, with the OpenFoodTox AI Analyzer, you have an easy-to-use tool at your fingertips. It's perfect for risk assessors, managers, and anyone else involved in food safety.
Here's what it offers:
- Instant access to toxicological data through prompt responses.
- Quick identification of chemical hazards in food products.
The OpenFoodTox AI Analyzer operates by providing prompts within the application.These prompts are then transformed into SQL queries using Google Gemma 7b LLM. Subsequently, a Python function is invoked to extract the SQL query from the model's output, which in turn is utilized to retrieve the final answer from the SQL database
- Model Name: Google Gemma 7b
- Programming Languages: Python and SQL
- AI Framework: LangChain
- Front-end : Streamlit
- Model Fine-Tuning Library: Transformers
- Model Evaluation/Monitorization: LangSmith
- Databse: SQL Lite
- Python/SQL Script: https://github.com/RafaelVieira13/OpenFoodTox_AI_ASSISTANT/blob/one_openfoodtox_table/sql.py
- Functions to Call the Model and Convert Prompt to SQL Query and to a Real Answer: https://github.com/RafaelVieira13/OpenFoodTox_AI_ASSISTANT/blob/one_openfoodtox_table/functions.py
- App Creation: https://github.com/RafaelVieira13/OpenFoodTox_AI_ASSISTANT/blob/one_openfoodtox_table/app.py
- Faster way to perform qucik analysis about OpenFoodTox;
- More user-firendly way to analyse OpenFoodTox;
- More intuitive;
- Enhance user interactions
- Not suitable for advance analysis;
- Model doesn't recognize the difference between some words (e.g with and without);
- May generate wrong answers;
- Streamlit WebAPP: https://openfoodtoxaiassistant.streamlit.app/
- Langsmith: https://www.langchain.com/langsmith
- OpenFoodTox SQL Database update and maintenance.
- Model Evaluation
- Collection of prompts and respective answers
- If necessary fine-tunne the model to improve accuracy
- Switch OpenSource tools to cloud