r/Rag • • 4h ago

Discussion My company has provided us claude code but given us peanuts as usage credits. I want to build an internal tool to reduce token usage

0 Upvotes

I was very anti ai but i have decided to dip my toes. I want to build an internal tool which can cut token usage, i learnt a bit about rag pipelines and while ai tells me it will cut token usage can anyone here actually explain me how it will cut token usage without using the words load bearing and smoking gun. I would also like some guidance on how i should architect this tool considering this has to be scaled and should be a highly available system. Also i would like to know how it will connect to the already given claude code. Like how will claude code know that this rag pipeline is there, i will access it . What are the safe practices i should keep in mind and if there is amy other internal tool i can make please suggest that too im open to that. Also it would be great if you could share resource material which will increase my knowledge. Im very excited to make this


r/Rag • • 13h ago

Discussion RAG Evaluation

5 Upvotes

I’m spinning up a new RAG project and want to make sure I’m thinking about retrieval evaluation the right way before I get too deep into tweaking chunking or embedding models.

How do you guys typically set this up from scratch? I'm trying to figure out the best way to handle:

  1. Generating test data when you don't have real user queries yet.
  2. Creating the ground truth and measuring if a retrieved result is actually relevant for example, do you check if it came from the right document/page, match exact chunks, or just ask an LLM if it helps answer the question?
  3. Which tools you actually stick with vs. what ends up being unnecessary overhead.

Any advice on what a simple, practical "day one" setup looks like would be hugely appreciated!


r/Rag • • 10h ago

Discussion AI answers quoting one zip code's price as the national price: where it comes from and how to check

2 Upvotes

Many retailers, grocers and big-box chains price by store or zip code. AI engines rarely say which location a price came from, so a shopper in Denver can get a quote that only applies to one store in Ohio.

Most of it traces back to how the page gets crawled. A bot with no location set lands on a default store, or gets one assigned by IP, and that store's price becomes the price. Schema and feeds can carry one number while the visible price swaps after a location cookie loads. Aggregators flatten regional prices into a single figure, and online-only prices get mixed in with in-store ones.

Checking it doesn't need anything fancy:
- Pick a small product set and pull the live price from several zip codes on the same day.
- Note which store the page defaults to with no location set, since that's often what bots see.
- Compare each AI-quoted price against the regional prices and record which location it matches.
- Repeat on a schedule, because regional prices move independently.

The tedious part is collection, since every zip needs its own session and store selection on each run. For that I'd recommend Ficstar: we maintain location-specific crawlers that pull prices by zip or store.

Has anyone mapped which default location each major retailer serves to bots?