Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New DB schema #52

Open
marvinmarnold opened this issue Jul 22, 2023 · 0 comments
Open

New DB schema #52

marvinmarnold opened this issue Jul 22, 2023 · 0 comments

Comments

@marvinmarnold
Copy link
Collaborator

marvinmarnold commented Jul 22, 2023

This is more or less what I'm thinking based on the current CS direction.

  • Very open to a better name than "cards" for the primary table that feed items are based on.
  • When query_general: one response linked
  • When query_in_depth: multiple responses linked
  • When case_study: Zero or more responses linked. Possibly each corresponding to different query strings.

Screenshot 2023-07-21 at 8 51 14 PM

But for now, I'll keep everything like we already have it. But I'm modifying the cloud function to return this JSON, which is similar to the eventual structure being proposed.

type ICard = {
	response_type: 'in_depth' | 'general';
	query: string;
	responses: {
		response: string;
		source_page_number?: string;
		source_timestamp?: string;
		source_url?: string;
		source_publih_date? string;
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant