Better HN
topnewbestaskshowjobs
Log inSign up

ArnavAgrawal03

38 karma · joined May 11, 2024 (2y ago) · 42 submissions

Submissions

comment 12mo ago · link · parent

you can do that with Morphik already :)

We use an embedding model that processes videos and allows you to perform RAG on them.

comment 1y ago · link · parent

Came here to say I love Ocaml too

comment 1y ago · link · parent

We use a BSL for our product (https://morphik.ai) and usually stay away from calling it anything. We'd just say "repo is public at: https://github.com/morphik-org/morphik-core". I like the term fair source, though.

Is it correct to assume that software than eventually becomes open under something like Apache or MIT is fair source? Or is there more subtlety to it?

comment 1y ago · link · parent

we used multi-vector models at Morphik, and I can confirm the real-world effectiveness, especially when compared with dense-vector retrieval.

comment 1y ago · link · parent

> They had known him for only 15 seconds, yet they still perceived the act of snapping him in half as violent.

This is right out of Community

comment 1y ago · link · parent

Our argument in general is that even in the non-flattened cases, we see complex diagrams pop up in documents that won't work with a text-based approach.

In the context of RAG, the objective is to send information to the model, so LLMs are the right tool for the job.

comment 1y ago · link · parent

Would love to try our hand at it! We have a couple magazine use cases, but the harder it is, the more fun it is :)

comment 1y ago · link · parent

Would love feedback :)

comment 1y ago · link · parent

Yes! We have a use case in production with over a million pages. MUVERA is good for this, since it is basically akin to regular vector search + re-ranking.

In our current setup, we have the multivectors stored as .npy in S3 Express storage. We use Turbopuffer for the vector search + filtering part. Pre-warming the namespace, and pre-fetching the most common vectors from S3 means that the search latency is almost indistinguishable from regular vector search.

ColPali with binary vectors worked fine, but to be honest there have been so many specific improvements to single vectors that switching to MUVERA gave us a huge boost.

Regular multivector ColPali also suffers from a similar issue. Chamfer distance is just hard to compute at scale. Plaid is a good solution if your corpus is constant. If it isn't, using the regular mulitvector ColPali as a re-ranking step is a good bet.

comment 1y ago · link · parent

For HTML, in a lot of cases, using the tags to chunk things better works. However, I've found that when I'm trying to design a page, showing models the actual image of the page leads to way better debugging than just sending the code back.

1 vs I or 0 vs O are valid issues, but in practice - and there's probably selection bias here - we've seen documents with a ton of diagrams and charts (that are much simpler to deal with as images).

comment 1y ago · link · parent

Completely agree with this. This is what we've observed in production too. Embedding images makes the RAG a lot more robust to the "inner workings" of a document.

comment 1y ago · link · parent

You can add OCR with Gemini, and presumably that would lead to better results than the OCR model we compared against. However, it's important to note that then you're guaranteeing that the entire corpus of documents you're processing will go through a large VLM. That can be prohibitively expensive and slow.

Definitely trade-offs to be made here, we found this to be the most effective in most cases.

comment 1y ago · link · parent

Multimodal RAG is exactly what we argue for. In their original state, though, multivectors (that form the basis for multi-modal RAG) are very unwieldy - computing the similarity scores is very expensive and so scaling them up in this state is hard.

You need to apply things like quantization, single-vector conversions (using fixed dimensional encodings), and better indexing to ensure that multimodal RAG works at scale.

That is exactly what we're doing at Morphik :)

comment 1y ago · link · parent

This would depend on the exact use case. Feeding in the invoice directly to the model is - in my opinion - the best way to approach this. If you need to search over them, then directly embedding them as images is definitely a strong approach. Here's something we wrote explaining the process: https://www.morphik.ai/docs/concepts/colpali

comment 1y ago · link · parent

That's an interesting point. We've found that for most use cases, over 5 pages of context is overkill. Having a small LLM conversion layer on top of images also ends up working pretty well (i.e. instead of direct OCR, passing batches of 5 images - if you really need that many - to smaller vision models and having them extract the most important points from the document).

We're currently researching surgery on the cache or attention maps for LLMs to have larger batches of images work better. Seems like Sliding window or Infinite Retrieval might be promising directions to go into.

Also - and this is speculation - I think that the jump in multimodal capabilities that we're seeing from models is only going to increase, meaning long-context for images is probably not going to be a huge blocker as models improve.

comment 1y ago · link · parent

I've used your product and particularly like that you show bugs in a table instead of littering my entire PR.

Does Jazzberry run on the entire codebase, or does it look at the specific PR? Would also like some more details about the tool - it seems much faster than others I've tried - are you using some kind of smaller fine-tuned model?

comment 1y ago · link · parent

While we don't use this yet, it seems very promising - thanks! We did something similar (with libreoffice, for example) to have support for non PDF datatypes, but this seems like it is coming at it more from a security perspective - which makes sense.

comment 1y ago · link · parent

totally agree that air-gapped provides unparalleled peace of mind. That's a major reason why we have strong support for local deployment. Nice to know that our hypothesis is somewhat accurate :)

comment 1y ago · link · parent

No, you can bring your own LLM. In the cloud, we're querying gpt-4o. We're looking to expand to have some fine-tuned VLMs for document parsing and extraction further in the roadmap, but that would heavily depend on use-case.

comment 1y ago · link · parent

Yes! If you're running the local version and it's taking long, that an indication that your GPU isn't being used properly. This can be traced back to the `colpali_embedding_model.py` file, where you can set the device and attention you want PyTorch to use.

comment 1y ago · link · parent

Hey! what format of files are you uploading? seems to work ok on my end...

comment 1y ago · link · parent

Thanks for the feedback :) We're using the MCP daily as we develop Morphik further. Thought it would be a nice thing to share.

"I used the stones to [make] the stones" haha

comment 1y ago · link · parent

Thank you!! It works particularly well with those. We use ColPali-style embeddings for our visual doc search. As a result, we're not limited by parsing quality the same way typical RAG systems are. Here's a link to a blog I wrote on ColPali, for reference: https://docs.morphik.ai/concepts/colpali

comment 1y ago · link · parent

Just adding some of our roadmap here as well:

- AST parsing and conversion to visual graphs for easier understanding of large codebases

- Integrate custom knowledge graph editing, parsing, and retrieval with Morphik MCP

- Slack, Jira, and Confluence integrations

25.

Ask HN: What RAG evaluations do you care about?

1 points · by ArnavAgrawal03 · 1y ago · discuss

comment 1y ago · link · parent

that's some really good feedback! Will definitely add a "Deploy your first app with Morphik" section.

You can definitely use this with products like obsidian. You might find out graph offering particularly helpful in that case

Look forward to you trying it out :)

comment 1y ago · link · parent

Try it out:

- Clone the repo at: https://github.com/morphik-org/morphik-core

- Launch the UI component following instructions here: https://docs.morphik.ai/using-morphik/morphik-ui

28.

Show HN: I built an open-source NotebookLM alternative using Morphik(github.com ↗)

23 points · by ArnavAgrawal03 · 1y ago · 3 comments

29.

I gave GPT 4.5 my journal to test its emotional intelligence(twitter.com ↗)

3 points · by ArnavAgrawal03 · 1y ago · discuss

12