135 karma · joined September 10, 2010
Twitter: @jumbld
I'm going to be __that guy__, but just ask - is the functionality set similar to llamaparse or is this llamaparse + llm?
Using them to "guide", "accelerate", and "empower" your AI development process? Now we're talking.
Let me explain why I believe this shift in perspective could change how we build AI...
Most people see AI guardrails as training wheels. But what if we saw them as a nitrous boost for our AI hot rods instead?
When you're not worried about your AI going off the rails, you can push it to its limits. You can experiment with wilder ideas, test bolder hypotheses, and innovate at lightning speed.
Want to train on spicy data? Guardrails have your back. Thinking of an aggressive model architecture? Guardrails keep you in bounds. Controversial prompt? Guardrails ensure you don't cross the line.
Am I in the right direction, or am I just going off the rails?
So there's 2 levels of cache - the LLM request itself might be cached (simple and semantic) and the guardrail response can be cached as well.
We use a mix of a distributed kv store and a vector DB to actually store the data
For an internal experiment on building a "Truthful Evaluator", we picked up this dataset and tried fine-tuning a model on these 8000 odd examples.
Realised that it needed: 1. Cleaning up 2. Some reclassification
But, most importantly - it lacked context data. It only had a link pointing to the source which was also absent for a few rows.
We scraped the internet for the link in the dataset, matched it to the question and narrowed down on a small context to be added to the main dataset.
Releasing it publicly so that someone else may avoid the 2-3 days of pain of wrangling with this data.
tl;dr: - Keep prompts short, combine prompts or make more detailed prompts but go to a smaller model - Simple and semantic cache lookups - Classify tasks and route to the best LLM using an AI gateway
Portkey.ai could help with a lot of this
We've done this through a careful combination of Clickhouse + MinIO for fast retrieval of log items + selected retrieval from the MinIO buckets.
Cost becomes a very big factor when managing, filtering and searching through TBs of data even for fairly small use cases.
One thing we lost in the process is full-text search over the request & response pairs and while we try to intelligently add metadata to requests to make searching easier, it isn't the complete experience yet. Still WIP as a problem statement to solve and maybe the last straw here. Any suggestions?
Having built LLM systems for the past 3 years, we painfully realised the need of DevOps for LLM systems, now emerging as the LLMOps/FMOps category. We're dead focused on the production side of things.
@HN - when building with LLMs, are you looking for LLMOps tools? How do you choose? What's most critical?
I would just start the slide, without even clicking on "Start Discovery Queue"
Please feel free to contribute.
Can you share evidence on shorter look-backs though?
We've today tried to create the perfect set of dashboards that can serve as a starting point for any AI builder to find control over the LLM requests. Very curious to get feedback from this community.
While amazing techniques & libraries exist for this, there's little literature on how to use them in production. Tried writing a detailed blog that decodes the OpenAI's evals framework and goes step-by-step through how to use it to your advantage.
You can learn how to use the eval framework to evaluate models & prompts to optimise LLM systems for the best outputs.
Disclosure: I work there and would love feedback.