News for hackers. Stuff that matters.
Re:Large Enough – Mistral AI by rkwz on Wednesday July 24, 2024 @12:17PM (#41058610)
> Longer context window (1M+)

What's your use case for this? Uploading multiple documents/books?

Re:Large Enough – Mistral AI by ketzo on Wednesday July 24, 2024 @12:21PM (#41058659)
Uploading large codebases is particularly useful.
Re:Large Enough – Mistral AI by ipsod on Wednesday July 24, 2024 @02:52PM (#41060459)
Is it?

I've found that I get better results if I cherry pick code to feed to Claude 3.5, instead of pasting whole files.

I'm kind of isolated, though, so maybe I just don't know the trick.

Re:Large Enough – Mistral AI by ketzo on Wednesday July 24, 2024 @05:14PM (#41062212)
I've been using Cody from Sourcegraph, and it'll write some really great code; business logic, not just tests/simple UI. It does a great job using patterns/models from elsewhere in your codebase.

Part of how it does that is through ingesting your codebase into its context window, and so I imagine that bigger/better context will only improve it. That's a bit of an assumption though.

Re:Large Enough – Mistral AI by benopal64 on Wednesday July 24, 2024 @01:37PM (#41059589)
Books, especially textbooks, would be amazing. These things can get pretty huge (1000+ pages) and usually do not fit into GPT-4o or Claude Sonnet 3.5 in my experience. I envision the models being able to help a user (student) create their study guides and quizzes, based on ingesting the entire book. Given the ability to ingest an entire book, I imagine a model could plan how and when to introduce each concept in the textbook better than a model only a part of the textbook.
Re:Large Enough – Mistral AI by moyix on Wednesday July 24, 2024 @03:20PM (#41060804)
Long agent trajectories, especially with command outputs.
Re:Large Enough – Mistral AI by tikkun on Wednesday July 24, 2024 @12:19PM (#41058623)
Correct
Re:Large Enough – Mistral AI by freediver on Wednesday July 24, 2024 @12:45PM (#41058941)
That would make each API call cost at least $3 ($3 is price per million input tokens). And if you have a 10 message interaction you are looking at $30+ for the interaction. Is that what you would expect?
Re:Large Enough – Mistral AI by coder543 on Wednesday July 24, 2024 @02:09PM (#41059924)
Gemini 1.5 Pro charges $0.35/million tokens up to the first million tokens or $0.70/million tokens for prompts longer than one million tokens, and it supports a multi-million token context window.

Substantially cheaper than $3/million, but I guess Anthropic’s prices are higher.

Re:Large Enough – Mistral AI by freediver on Wednesday July 24, 2024 @04:29PM (#41061680)
It is also much worse.
Re:Large Enough – Mistral AI by coder543 on Wednesday July 24, 2024 @04:31PM (#41061697)
Is it, though? In my limited tests, Gemini 1.5 Pro (through the API) is very good at tasks involving long context comprehension.

Google's user-facing implementations of Gemini are pretty consistently bad when I try them out, so I understand why people might have a bad impression about the underlying Gemini models.

Re:Large Enough – Mistral AI by reitzensteinm on Wednesday July 24, 2024 @06:50PM (#41063050)
You're looking at the pricing for Gemini 1.5 Flash. Pro is $3.50 for <128k tokens, else $7.
Re:Large Enough – Mistral AI by coder543 on Wednesday July 24, 2024 @06:54PM (#41063066)
Ah... oops. For some reason, that page isn't rendering properly on my browser: https://imgur.com/a/XLFBPMI

When I glanced at the pricing earlier, I didn't notice there was a dropdown at all.

Re:Large Enough – Mistral AI by rkwz on Wednesday July 24, 2024 @12:51PM (#41059021)
Maybe they're summarizing/processing the documents in a specific format instead of chatting? If they needed chat, might be easier to build using RAG?
Re:Large Enough – Mistral AI by tr4656 on Wednesday July 24, 2024 @01:22PM (#41059425)
This might be when it's better to not use the API and just pay for the flat-rate subscription.
Re:Large Enough – Mistral AI by impossiblefork on Wednesday July 24, 2024 @05:00PM (#41062054)
So do it locally after predigesting the book, so that you have the entire KV-cache for it.

Then load that KV-cache and add your prompt.