Skip to content

RafaelVieira13/OpenFoodTox_AI_ASSISTANT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFoodTox AI Analyzer

What is the OpenFoodTox Analyzer?

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.

How the App Works?

image

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

Tools Used

  • 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

Project Architecture

image

Advantages

  • Faster way to perform qucik analysis about OpenFoodTox;
  • More user-firendly way to analyse OpenFoodTox;
  • More intuitive;
  • Enhance user interactions

Limitations

  • Not suitable for advance analysis;
  • Model doesn't recognize the difference between some words (e.g with and without);
  • May generate wrong answers;

Final APP

Further Work

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published