Skip to content

Add a URL resource using AI (backend) 🔗 #739

@ramiAbdou

Description

@ramiAbdou

Note

This issue is reserved for the Bloomberg Mentorship Program.

Description

Currently, in order to add a URL resource to the Resource Database, you have to fill out all these fields yourself:

Image

However our goal is to get to a point where all you need to do is upload a URL, and we will automatically determine the title, description and tags using web scraping and AI. This issue will focus solely on implementing this functionality on the backend.

Acceptance Criteria

  • Implement a new function called addResourceWithAI in the resources module which accepts a url and creates a new resource in the database using AI to determine the title, description and tags.

Additional Context

  • We've done something very similar in the creation flow for opportunities, please see how we implemented refineOpportunity for inspiration.
  • You can use the getPageContent in order to read the URL's content.
  • Reach out to us for a test ANTHROPIC_API_KEY that you can use in development.

Metadata

Metadata

Labels

Backend 🔌This requires backend work (ie: DB, business logic).BloombergThis issue is reserved for the Bloomberg Mentorship Program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions