193 karma · joined Jun 29, 2021 (5y ago) · 59 submissions
comment 1y ago · link · parent
You can see our framework [here](https://github.com/aurelio-labs/graphai). I don't necessarily recommend it as it's built for our use-cases and I make no guarantees for others, but it might be interesting to see what rolling your own might look like
comment 1y ago · link · parent
It was a ton of fun to figure it out and it brought back some nostalgia from the days of training ML models, tweaking learning rates, dropout, and watching loss charts in W&B.
Final performance was way better than any 1-3B parameter LLM I tried with agentic workflows in the past.
4.
LoRA Fine-Tuning Tiny LLMs as Expert Agents(youtube.com ↗)
4 points · by jamesbriggs · 1y ago · 3 comments
comment 1y ago · link · parent
- LoRA fine-tuning of Llama 3.2 1B - Deploy of private AI agent systems - Using NVIDIA NIMs to host our fine-tuned LLM - Interacting with our LLM + streamed output
It was a ton of fun to figure this out, and it brought back some nostalgia from the good old days of training ML models, tweaking learning rates and dropout, and watching loss charts in W&B.
The result is a llama-3.2-1b-instruct fine-tuned to provide pretty good function-calling abilities (better than any other out-of-the-box 1-3B models I tried).
comment 1y ago · link · parent
comment 2y ago · link · parent
9.
OSS for building more steerable AI agents(youtube.com ↗)
2 points · by jamesbriggs · 2y ago · 1 comment
comment 3y ago · link · parent
I think LLMs are fairly good at deciding what information is relevant to a query or not though, it is rare that I have found an LLM to be distracted by RAG results (even when they're not relevant)
comment 3y ago · link · parent
comment 3y ago · link · parent
Maybe your question is referring to the need to have quantization at larger index sizes? In which case, yes would typically be true because you're wanting to either (1) minimize the index size when quantizing it, or (2) optimizing the query space (to search through less). Whether you want (1) or (2) will impact on the type of quantization being performed (basically 1 == product quantization, and 2 == inverted index)
So once you get to the 1M+ size, you need to consider quantization in some form - or you can go with graph-based retrieval, if you don't mind using a lot of disk space.
comment 3y ago · link · parent
comment 3y ago · link · parent
Typically you'd split the text in paragraph sized chunks to handle this requirement of sentence transformers, with GPT-3 embeddings you naturally have more flexibility there
comment 3y ago · link · parent
The way I built it is documented here: https://www.pinecone.io/learn/openai-whisper/
Afaik it's the same approach as Riley, that is:
- Scrape audio of YouTube videos
- Transcribe to text with OpenAI's Whisper
- Use sentence transformer to create embeddings of text
- Index embeddings (with transcribed text, timestamps, and video URL attached) in Pinecone's vector database
- Wrap up the querying functionality in a nice UI
(this is for the search functionality)
If wanting to replicate the Q&A part, I also built something similar and wrote about it (https://youtu.be/coaaSxys5so) - it's essentially the same process but we return text snippets to GPT-3 along with the original question and it generates an answer
18.
Giving generative AI “memory” for Q&A(youtube.com ↗)
1 points · by jamesbriggs · 3y ago · discuss
comment 3y ago · link · parent
They act as a "position signal" that modifies the patch embedding. The learned signals are similar to other neighbouring position signals, and the later layers of the model will use the "similarity" between signals to identify the proximity/order of different patches.
There is no explicit mechanism that tells the network to make neighboring position embeddings similar, it's just a result of the training that fortunately works and seems logical.
I can definitely try to explain further if needed
20.
Show HN: Ask YouTube – search for specific answers in videos(huggingface.co ↗)
2 points · by jamesbriggs · 4y ago · discuss
21.
Using OpenAI's Whisper to Rebuild YT Search(pinecone.io ↗)
1 points · by jamesbriggs · 4y ago · discuss
23.
Hugging Face Datasets 101(youtube.com ↗)
1 points · by jamesbriggs · 4y ago · 1 comment
24.
Spotify's Podcast Search Explained(pinecone.io ↗)
3 points · by jamesbriggs · 4y ago · discuss
comment 4y ago · link · parent
1. The people who built the Pinecone vector index include some of the top experts in information retrieval/vector search in the world, the chances of someone like myself building something more efficient in Faiss is pretty slim, even after spending months learning the library and as much as I can about vector search
2. Faiss is only a vector index, it doesn't manage your data, so you need to personally build a framework around your Faiss index to handle that, speaking from experience this can be frustrating
3. Pinecone has one of (if not the) most advanced implementation of filtering available, they use 'single stage' filtering, which provides pre-filtering speeds with post-filtering accuracy
4. Scalability, want to search through an index of 2B vectors? Not an issue, getting that working with Faiss is not fun
5. Ease of use, all of the above takes an API key and ~5 lines of code to setup
comment 4y ago · link · parent