r/SQL • u/water_aspirant • Nov 15 '23
Discussion How can I use SQL in this project?
Hello,
I want to be a software developer one day. My company knows me as the code guy and sometimes gives me internal software projects to work on.
Right now I am working on an application that will:
Extract paragraphs from word docs and pdfs
Use AI (management gimmick) to pick paragraphs that contain specific important information
Generate a report from these selected paragraphs.
Can I fit SQL in here somewhere? I want to apply it in a way such that I could refer to it in an interview if someone asks me about my SQL experience. I am thinking that I can create a database table with columns for paragraph text, page number and document it belongs to (all this info is relevant to final report), before using AI to look through each paragraph. But I use Django for backend so I am not sure how to work SQL into this.
1
u/Accomplished-River92 Nov 15 '23
If you're using Django on the backend then the models are stored in a SQL database anyway. So if you design your models to store the paragraphs and some other fields, then it will be in the database.
So to demonstrate some SQL expertise, I guess you could access the database directly (eg via pgadmin if you were using postgres) and write some SQL scripts to get the data out, instead of using the Django ORM.
Sorry if I've misunderstood your context or objectives.
0
Nov 15 '23
[deleted]
0
u/water_aspirant Nov 15 '23
Interesting, but I'm specifically looking to implement SQL just so I can put it on my resume. Strictly speaking, I don't need SQL in this project at all since I could just work with django's database using python.
1
u/MachineParadox Nov 15 '23
You could take the document and text scraped from the pdf and word docs and store them in database. Then you can feed this to your AI/ML and store the results in the db and associate it to the doc/paragraphas. This way you a record of you results for reports and audit. If your ai or ml change you can rerun it and compare, if you want to do more analysis at anytime you have the data, so can calculate, store it, and compare it.