Parse diary in PDF files, add tags, keywords, build analytics using LLM.
- use Langchain as framework to connect LLM with python
- use Gemini as LLM
- use Postgres as Vector DB and DocStore
- Install Docker and Docker Compose
- clone project
- run
make setup
make startmake stopmake api-console- open console of api containermake invoke-llm QUERY="<QUESTION>"- ask LLM a question. Example:make invoke-llm QUERY="how are you?"make alembic-revision M="<MESSAGE>"- generate alembic revisionmake import-diary-file FILE="<FILE_NAME>"- import markdown file from/diary_filesmake import-sleep-csv FILE="<FILE_NAME>"- import csv file from/health_filesmake get-llm-responses- process all records without llm responsemake process-llm-responses- process all records with llm response and generate tags, subjects, locations, etc.
- run
make helpto see all commands
- http://localhost:8080/ - Adminer database manager
- http://localhost:8000/api - Api
- http://localhost:8000/docs - Api docs
- http://localhost/ - Front
TODO
- AI agent decide if generate chart for data.
- AI agent to decide if it should ask vector db or text to sql.
- Vector DB to enable seaching in diary
- add sports data
- import huawei data