TanGentleman / Augmenta

Automate RAG-powered workflows
MIT License
1 stars 0 forks source link

Add -i flag to add inputs from CLI #27

Open TanGentleman opened 1 month ago

TanGentleman commented 1 month ago

I'm building some keyboard shortcuts that access the current webpage, and a flow for this would be nice:

python chat.py -np -i 'example.com, lichess.org' 'Tell me about the tournaments running rn on lichess'

TanGentleman commented 1 month ago

When implementing this, I realized that the example I used would cause an error. The correct syntax would require the -i flag to be placed after the prompt.

The new implementation should be working!

python chat.py "Tell me about the tournaments running rn on lichess" -i "https://lichess.org"

Output:

RAG engine response #1!
Based on the provided context, I can tell you that there are two tournaments currently running on Lichess:

1. **Battle for the SuperBlitz Shield**: This is a tournament with 2377 players, and it's being played right now.
2. **Hourly Rapid Arena**: This is another tournament with 776 players, also being played right now.

Additionally, you can follow all the games of Round 6 in our broadcast, which seems to be an ongoing feature on Lichess. If you're interested in learning more or watching some chess action, you might want to check out their YouTube channel or streamers like Yangyi, Tabatabaei, or Niemann.

That's the latest tournament information I could find!

Works like a charm! The LLM and embedding is all done locally with Ollama, and I used a chunk size/overlap of 500/50. Seeing the name Tabatabaei was cool, I have some old chess history with him :)

TanGentleman commented 1 month ago

Going to test edge cases before closing this! I may want to include automatic URL detection and prepend "https://" if needed, just for more straightforward CLI usage