r/DatabaseHelp • • 8d ago

How would you structure the database for information gathered in conversation?

Whilst many systems gather information using structured areas for entry so this is often easy to manage but it may also prevent individuals from giving more contextualised information.

Consider a system which gathers details of an individuals skills, experience and aspirations via conversation.

Deciding which information to structure and which to retain as raw conversation data is key also important is the management of time varying information.

Further considerations include things like entity resolution, managing and merging of duplicate entries, data source, data permission and ensuring data remains current.

I have been considering these issues in relation to systems such as MeeBoss, Glassdoor, WellFound which are investigating how best to enable conversations between job seekers and jobvacancies.

From a database engineering perspective how would you design the system? Would you implement a relational database containing structured information gleaned and a document store for the conversation data or would you take an integrated approach?

2 Upvotes

2 comments sorted by

1

u/ggleblanc2 8d ago

It depends on what you have available. A relational database table can consist of a key and a large VARCHAR for unstructured conversation. You can have multiple VARCHAR tables or rows within a table.

1

u/seatable_io 5d ago

I'd keep the raw conversations as an append-only source of truth and treat the structured data as derived from them. That avoids sync problems between two systems, and you can split them later if volume demands it.

Every extracted fact should carry provenance: the source message, a confidence score and a timestamp. That lets you re-extract when your model improves, explain where a fact came from, and handle deletion requests. For time-varying data, add valid-from and valid-to dates plus a "last confirmed" date, so you can ask what was true at a given point and re-check stale facts in the next conversation.

Map skills to a controlled taxonomy like ESCO so "JS" and "JavaScript" resolve to the same entity. Auto-merge duplicates only at high confidence, send borderline cases to review, and keep merges reversible with a log. Set consent and visibility per fact, not per person, since someone may share an aspiration with a coach but not with an employer.