Posts

[Day 112] db2chat - Talk with your (sqlite3) database

Image
 Hello :) Today is Day 112! A quick summary of today: made a webapp to talk with a database ( webapp ) ( github ) This morning I saw this langchain post on creating a chat agent with a database, and it hit me - I need to make one myself! The short but concise tutorial uses GPT, but I am just a poor student that prefers to use open source, and from a random X post I learned about Groq. It is crazy that we can use Groq models off-the-shelf (like mistral-8x7b, gemma-7b-it, and even llama3-8b). A quick summary of the code 1st: create a query chain for the sql code 2nd: query the model for a natural response 3rd: I used streamlit because it is so easy to develop, and deploy a webapp with it Webapp summary 1. Input your Groq/OpenAI API key and select a model (mistral-8x7b, gpt-4, llama3-8b, gemma-7b-it) 2. Load your sqlite3 db file (optional) 3. Select a database to chat with (default is chinook) + click 'Connect' You can view your db's schema: 4. Enter a query, run ...

[Day 111] Advanced Topics in GNNs

Image
 Hello :) Today is Day 111! A quick summary of today: Limitations of GNNs Scaling GNNs to Large Graphs Continued with XCS224W: ML with Graphs  and covered the penultimate module. Limitations of GNNs Covered topics: Position-aware GNNs, Identity-aware GNNs, robustness of GNNs Scaling GNNs to Large Graphs Covered topics:  Why scaling is non-trivial, GraphSAGE and neighbour sampling, issues with neighbour sampling, subgraph sampling, ClusterGCN That is all for today! See you tomorrow :)

[Day 110] Learning about Graph Transformers

Image
 Hello :) Today is Day 110! A quick summary of today: watched a hackaton held by the best CS high school in Bulgaria - TUES learned about Graph Transformers ( slides , blog ) Technical School Electronic Systems (TUES) unfortunately does not have an english website. This is a link to their youtube channel where student video projects are uploaded. Every year, they hold a hackaton for ~3 days, and I saw a recording of this year's from last month. Understandably many projects involve AI, and one of the projects from a team of school graduates (my best friend participates in it. I saw him randomly, I did not know he participated :D) is below Essentially, it is a knowledge graph that takes laws, bills and policies and a user can browse through nodes (different laws), find connections and references to other nodes, and also on the right ask questions, and when a result is given, the user is also pointed to the nodes that refer to the GPT response.  There were many projects in ...

[Day 109] Graph Generative Models

Image
 Hello :) Today is Day 109! A quick summary of today: covered Graph Generative Models from XCS224W:ML with Graphs Covered topics: The graph generation task, generative models basics, GraphRNN, scaling GGMs (the tractability issue), evaluating generated graphs, applications of deep GMMs That is all for today! See you tomorrow :)

[Day 108] Recommender systems + small adjustment to the text2chart webapp

Image
 Hello :) Today is Day 108! A quick summary of today: added a field to show generated code by codellama in the text2chart webapp covered recommender systems from XCS224W: ML with Graphs Firstly, about the text2chart webapp When I create the prompt for codellama, I give it info about the type of columns in the dataframe, using the below logic It may not be the most robust, but it does fine for now. I thought a problem with the app is that the date column is read as numerical values, and tried to introduce the (now) commented if statement, tested it a bit and it did not seem to do anything. Then, I decided to show the user what kind of code is being used to generate the shown graph (probably a feature I should have had from the beginning). And this actually made me realise that sometimes the generated code is actually not that good, so a more detailed query might be needed.  Example: So if a resulting graph is not good, we can see what was wrong in the code, and give a more spec...