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

Source prompting #40

Merged
merged 20 commits into from
Jul 24, 2024
Merged

Source prompting #40

merged 20 commits into from
Jul 24, 2024

Conversation

alnutile
Copy link
Contributor

@alnutile alnutile commented Jul 20, 2024

Thanks to customer feedaback I am jumping on this big feature.

Any source will be 100% driven by the Prompt the user put.

So Source Email, Web, Search etc all gets passed to an LLM to do something with the text.

For example you want to check emails about xyz only, and if it is an email about that the prompt will process that text and turn it into a document in your collection. Or scrape this site for event data, the LLM will then use the HTML to just get you the event data.

There is a lot to do here:

  • All Sources Converted to this pattern (false or not, array or not)
    • WebPageSource
    • WebSearchSource
    • WebhookSource
    • SiteMapSource
    • JsonSource
    • GoogleSheetSource
    • FeedSource
    • EmailSource
    • EmailBoxSource
  • All Sources allow for a way to NOT delete emails or NOT take in data kinda of like a false return to not save as document
  • UI will surface this easily for the user so they are empowered to do this work
  • Prompts can product Array
  • SourceTask to prevent repeat on emails without deleting or marking emails.
  • Chat now shows Sources and Messages to show a log of activity to the user
  • Chunking is a generic job since all of this is text after this point

@alnutile alnutile merged commit 54aea8e into main Jul 24, 2024
2 checks passed
@alnutile alnutile deleted the source_prompting branch July 24, 2024 01:21
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

Successfully merging this pull request may close these issues.

1 participant