Better HN
topnewbestaskshowjobs
Log inSign up

joewferrara

99 karma · joined Jun 3, 2020 (6y ago) · 54 submissions

Submissions

comment 2mo ago · link · parent

Hey Oliver, thanks for the question! This is the PrivacyBench dataset maintainer here. The LLM-as-judge for synthesis coherence has been reviewed extensively by me. The privacy_bench_metrics evaluation code generates a report that has for each person in the data the mappings of that person's PII to the synthetic replacements as well as the LLM-as-judge's judgement for each replacement. That makes review easy and LLM-as-judge decisions look. Each decision the LLM-as-judge makes is binary (is the replacement coherent or not), so it is a strait-forward judgement for the LLM and it is easy for a human to review. All that being said, we're in the process of doing a more rigorous evaluation where we record humans judgements and compare them to the LLM-as-judge on a subset of the PrivacyBench data.

2.

PrivacyBench: An open benchmark for de-identifying text that scores synthesis(huggingface.co ↗)

4 points · by joewferrara · 4mo ago · discuss

comment 1y ago · link · parent

I think you mean x*x = -1, for which I agree with your point.

comment 2y ago · link · parent

right now we support txt, csv, tsv, docx, xlsx, pdf, png, tif, tiff, jpg, and jpeg filetypes. we support either local files or aws s3 as the document store where the files are read from. so we can work with your messy files in s3 as they are without any standardizing!

comment 2y ago · link · parent

that's a good question. for this use case, we have a custom models feature where the user can define an entity type (types) they're interested in and then a custom ner model is trained to identify the specified type. for this, a combination of llms and user input are used to generate training data for the ner model.

comment 2y ago · link · parent

The built in static, I'm not sure if it's purposeful or not, but I like it. If it is purposeful, it's a nice touch.

comment 2y ago · link · parent

kevin buzzard is a very good(usually math) expositor with a bent towards programming. love it

comment 2y ago · link · parent

I tried out Amazon Bedrock, and used Tonic Validate to do a head to head comparison of very simple RAG system's built using embedding and text models available in Amazon Bedrock. I compared Amazon Titan's embedding and text models to Cohere's embedding and text models in RAG systems that employ Amazon Bedrock Knowledge Bases as the vector db and retrieval components of the system.

The code for the comparison is in this jupyter notebook https://github.com/TonicAI/tonic_validate/blob/main/examples...

Let me know what you think, And your experiences building RAG with Amazon Bedrock!

9.

Validating the RAG Performance of Amazon Titan vs. Cohere Using Amazon Bedrock(tonic.ai ↗)

1 points · by joewferrara · 2y ago · 1 comment

10.

Open Language Model: OLMo(allenai.org ↗)

1 points · by joewferrara · 2y ago · discuss

comment 2y ago · link · parent

Is the staff (which includes you) is all volunteers, there’s so reason to expect or want people to have a “get shit done” attitude. You should all appreciate that you’re putting in any time together towards a shared goal.

comment 2y ago · link · parent

Tonic's RAG evaluation platform is Tonic Validate, which has open source RAG metrics https://github.com/TonicAI/tonic_validate, and a web app for tracking and monitoring RAG performance https://www.tonic.ai/validate.

13.

Tonic.ai and LlamaIndex join forces to help developers build RAG systems(tonic.ai ↗)

1 points · by joewferrara · 2y ago · 1 comment

comment 2y ago · link · parent

They show that a decoder only transformer (which gpts are) are rnns with infinite hidden state size. Infinite hidden state size is a pretty strong thing! Sounds interesting to me.

comment 3y ago · link · parent

Where we are today is a world where people do not generally worry about nuclear bombs being dropped. So seems like a pretty good outcome in that example.

comment 3y ago · link · parent

Yeah but for non profits it’s worse than for profits and that’s the point. At for profit companies everyone (the board included) is trying to make money. That’s the end goal, and most decisions go towards that goal so even if employees don’t agree with a decision, they can at least see the decision as coherent towards an agreed upon goal. At non profits the board and the employees desires are much more likely to be in large conflict in my opinion because the board has no financial stake in the company. This OpanAI thing is a huge example of this but it also happens all the time at normal non profits. The board at non profits is randos with jobs separate from the non profit being on the board for fun but they get ultimate decision marking power when the employees actually work there and spend 40 hours a week or whatever doing shit for the company.

comment 3y ago · link · parent

Every prime is odd and 2 is the oddest of them all!

comment 3y ago · link · parent

Amazing how simple the proof is. 37 is my new favorite prime number, haha.

comment 3y ago · link · parent

The interesting point/question in this is whether Open AI will invest in hardware to build a ChatGPT interface in the future that allows for less friction of use than just “being an app on an IPhone”. I think it’s amazing and would be so cool to see a new device people use that has function that hasn’t been totally defined yet. The IPhone is so mature it’s time for the next thing!

comment 3y ago · link · parent

Gauss died in 1855 and his work still influences modern mathematics. Someone told me while in grad school that in number theory we’re still figuring out stuff that Gauss already knew.

comment 3y ago · link · parent

I enjoy Sharp Tech (Stratechery’s podcast), though unfortunately it’s mostly paywalled but has free episodes. It’s good for the business side of big tech and the two people on it, Ben Thompson and Andrew Sharp keep it pretty light and fun, which is nice because business stuff can be dry as hell.

comment 3y ago · link · parent

Author here. The linked Jupyter notebook shows how to use tvalmetrics, a RAG metrics Python package, to evaluate RAG query engines built using LlamaIndex on a dataset of Paul Graham essays about startup founders. The RAG parameters chunk size and number of retrieved context chunks are varied and tvalmetrics is used to show which choice of chunk size and number of retrieved context chunks is optimal.

comment 3y ago · link · parent

It's true that there are not a lot of datasets for benchmarking RAG. RAG applications are so tailored to the specific data being used as well as the use case, that a benchmark dataset is not useful across different RAG applications. The data used for a RAG application could be slack messages, technical documentation, insurance policies, internal company microsoft word documents, or a combination of these. For each of these different data source examples, the benchmark dataset would need to be very different.

We recommend that when building a RAG application, the developers build a benchmark dataset specifically tailored to the data being used for the RAG application, and the use case of the RAG application.

comment 3y ago · link · parent

tvalmetrics is similar to ragas for sure, and we really like ragas. tvalmetrics has structural differences as well as differences in the specific metrics when compared to ragas.

With regards to the metrics, we have an end to end metric that scores how well your RAG response matches a reference correct response called answer similarity score. Last I saw, ragas did not have a score like this as they focus on scoring RAG responses and context without a reference correct answer. We also have a retrieval k-recall score that involves comparing the relevance of the retrieved context to the relevance of the top k context chunks where k is larger than the number of retrieved context chunks. Retrieval k-recall is a good score for tuning how many context chunks your RAG system should retrieve. I do not believe ragas has a score like this.

Structurally, tvalmetrics does not use langchain, while ragas does use langchain. We chose not to use langchain for our LLM API calls to keep the code in the package clear and make it easy for a user to understand exactly how the LLM-assisted evaluation works for each metric. Of course, the drawback of not using langchain means that our package is not integrated with as many LLMs. Currently, we only support using Open AI chat completion models as LLM evaluators to calcaulate the metrics. We plan on adding support for additional LLM evaluators very soon.

comment 3y ago · link · parent

Joe here. This is a good question, and always a challenge when using a test set to measure the performance of an LLM/AI/ML application. The answer is to make the test dataset consist of questions that come from users of your app - this is the best way to get a representative sample of questions to test your RAG application with. If you do this though, your test dataset will consist of questions withouth reference "correct" answers. In this case, you can still use tvalmetrics to evaluate the responses by using the metrics in tvalmetrics that do rely on reference "correct" answers.

tvalmetrics introduces 6 RAG metrics: answer similarity, retrieval precision, augmentation precision, augmentation accuracy, answer consistency, and retrieval k-recall. Of these 6 metrics, only answer similarity requires reference answers, so you can use the other metrics to measure the performance of your RAG system when you have a test dataset of questions without reference "correct" answers.

comment 3y ago · link · parent

Joe here. It's difficult to evaluate natural language responses that come from LLM applications - there are not hard metrics to measure performance like there are in say supervised machine learning tasks. For RAG, you have the response to evaluate as well as the retrieved context chunks. We found that using gpt-4 as an evaluator to measure the quality of RAG responses and the relevance of the context chunks gave similar results to using human evaluators at Tonic to do the same task. Some research also agrees that using LLMs as an evaluator for natural language tasks gives similar results to using human evaluators https://arxiv.org/abs/2306.05685.

As far as whether using gpt-4 is a safe approach, the best you could ask for is that gpt-4's evaluations match those of human evaluators, and that's what we've found as well as this research.

comment 3y ago · link · parent

To counter point, the Mona Lisa makes so much money from people going to see it, it’s not surprising that some money could be found to do this research. And the write up on the composition of the Mona Lisa paint would get exponentially many more readers than any real research your friend would be doing.

comment 3y ago · link · parent

Learn complex analysis contour integrals! There super fun for doing physics integrals. I'm not sure if these are too basic for what your asking about or not, but thought I'd mention them. Junjiro Noguchi's Introduction to Complex Analysis is a book recommended from herehttps://math.stackexchange.com/questions/438468/what-is-the-...

29.

Will Computers Outsmart Mathematicians? (2021) [video](youtube.com ↗)

2 points · by joewferrara · 3y ago · 1 comment

12