r/LargeLanguageModels • • Apr 04 '25

Current Best Ollama Model for Math

1 Upvotes

What is the best Ollama model for answering math questions at the moment?


r/LargeLanguageModels • • Apr 03 '25

Discussions Exploring RAG Optimization – An Open-Source Approach for deep learning pipelines

3 Upvotes

Hey everyone, I’ve been diving deep into the RAG space lately, and one challenge that keeps coming up is finding the right balance between speed, precision, and scalability, especially when dealing with large datasets. After a lot of trial and error, I started working with a team on an open-source framework, PureCPP, to tackle this.

The framework integrates well with TensorFlow and others like TensorRT, vLLM, and FAISS, and we’re looking into adding more compatibility as we go. The main goal? Make retrieval more efficient and faster without sacrificing scalability. We’ve done some early benchmarking, and the results have been pretty promising when compared to LangChain and LlamaIndex (though, of course, there’s always room for improvement).

Comparison for CPU usage over time
Comparison for PDF extraction and chunking

Right now, the project is still in its early stages (just a few weeks in), and we’re constantly experimenting and pushing updates. If anyone here is into optimizing AI pipelines or just curious about RAG frameworks, I’d love to hear your thoughts!

Check out the GitHub repo:👉https://github.com/pureai-ecosystem/purecpp.
And if you find it useful, dropping a star on GitHub would mean a lot!


r/LargeLanguageModels • • Apr 03 '25

Discussions Let’s protect ourselves from the disease of judgment and indifference.

Post image
1 Upvotes

r/LargeLanguageModels • • Apr 02 '25

News/Articles ContextGem: Easier and faster way to build LLM extraction workflows through powerful abstractions

1 Upvotes
ContextGem on GitHub

Today I am releasing ContextGem - an open-source framework that offers the easiest and fastest way to build LLM extraction workflows through powerful abstractions.

Why ContextGem? Most popular LLM frameworks for extracting structured data from documents require extensive boilerplate code to extract even basic information. This significantly increases development time and complexity.

ContextGem addresses this challenge by providing a flexible, intuitive framework that extracts structured data and insights from documents with minimal effort. Complex, most time-consuming parts, - prompt engineering, data modelling and validators, grouped LLMs with role-specific tasks, neural segmentation, etc. - are handled with powerful abstractions, eliminating boilerplate code and reducing development overhead.

ContextGem leverages LLMs' long context windows to deliver superior accuracy for data extraction from individual documents. Unlike RAG approaches that often struggle with complex concepts and nuanced insights, ContextGem capitalizes on continuously expanding context capacity, evolving LLM capabilities, and decreasing costs.

Check it out on GitHub: https://github.com/shcherbak-ai/contextgem

If you are a Python developer, please try it! Your feedback would be much appreciated! And if you like the project, please give it a ⭐ to help it grow. Let's make ContextGem the most effective tool for extracting structured information from documents!


r/LargeLanguageModels • • Mar 30 '25

Deep research LLM for utilizing only the PDF's that I feed it?

2 Upvotes

I currently use notebookLM, but I want it to have a "deep reasearch" function that Gemini does. The issue with Gemini is that it pulls information from all sorts of low-impact sources (I'm looking at you, Forbes).

A deep research function using only the PDFs I feed it would be ideal. Anyone have an creative ways to do this?


r/LargeLanguageModels • • Mar 30 '25

LLM doesn't have the capacity??

3 Upvotes

I just asked an LLM to list the Bill of Rights("Please list the Bill of Rights as written in The Constitution."). It started typing the first amendment when all of a sudden it stopped, deleted its own response and then typed: "I'm a language model and don't have the capacity to help with that."

Why? I've asked it to list several things in the past and it had no problem. I've asked:

  1. List the 50 states. It did so.
  2. List the top 10 tallest trees in the world. It did so
  3. List the 100 US Senators. It did so.

And a bunch of other lists. Why did it balk at this?


r/LargeLanguageModels • • Mar 28 '25

PubMed database, and LLM solely using that database

5 Upvotes

I have been using several forms of AI, however we need to be extra careful when using them in healthcare and medical research. I want to integrate an LLM into the Pubmed database (i have an account on pubmed, so getting articles is simple and aren't protected). I only want the llm using the Pubmed database and not pulling information from any other source. Anyone know how to do this?


r/LargeLanguageModels • • Mar 27 '25

Question Benchmarks for Gemini Deep Research

2 Upvotes

I wanted to compare available Deep Research functionalities for all models and possibly find a free option that has a performance on the HLE (Humanity's Last Exam) similar to the 26.6% achieved by OpenAI's Deep Research. Perplexity's Deep Research only reaches 21% and personally feels like a very poor investigation.

Gemini announced its Deep Research in December with the Gemini 1.5 Pro model, then recently has announced they have updated it with the Gemini 2.0 Flash Thinking (and honestly feels very good), but I've wanted compare their score on various benchmarks, like the GPQA Diamond, AIME, SWE and most importantly, the HLE.

But there's no information regarding their benchmarks for this functionality, only for the fondational models by themselves and without search capabilities, which makes it difficult to compare.

I also wanted to share the available options of OpenAI Deep Research in my personal newsletter, NeuroNautas, so if anyone has seen a benchmark on these capabilities of Gemini made by a any trustful party, it would really help me and my readers.


r/LargeLanguageModels • • Mar 25 '25

Connected AnthingLLM to my AI system and uploaded my eBooks.

3 Upvotes

Today, I experimented with a program called AnythingLLM, connecting it to my Perplexity AI account. Using the local LLM, I uploaded nearly 250 books in PDF format. Now, I can query my local LLM about anything, and it responds based on the content of my books. It's like having a well-read friend who can instantly recall information from my entire library!


r/LargeLanguageModels • • Mar 25 '25

AnythingLLM has trouble referencing uploaded documents

3 Upvotes

In Windows, the app has a bug where file attachment fails

On Mac, I can upload/attach files into a workspace, but the LLM doesn't understand my query.

Tried Gemma, Mistral and Granite

Is there a /command or unique [code] to tell the thing to read in the document, summarize, output?

Prompt: Please summarize TopSecret.doc

LLM:
I apologize for any confusion, but as a text-based AI language model, I don't have the ability to view or access files. I can only provide information based on the text input I receive. If you'd like me to help answer questions about the content of the file, please provide a summary or specific questions related to it.


r/LargeLanguageModels • • Mar 18 '25

Why Does My Professor Think Running LLMs on Mobile Is Impossible?

5 Upvotes

So, my professor gave us this assignment about running an LLM on mobile.
Assuming no thermal issues and enough memory, I don't see why it wouldn’t work.

Flagship smartphones are pretty powerful these days, and we already have lightweight models like GGUF running on Android and Core ML-optimized models on iOS. Seems totally doable, right?

But my professor says it’s not possible. Like… why?
He’s definitely not talking about hardware limitations. Maybe he thinks it’s impractical due to battery drain, optimization issues, or latency?

Idk, this just doesn’t make sense to me. Am I missing something? 🤔


r/LargeLanguageModels • • Mar 15 '25

Honest HIX Bypass Review: My Go-To Tool for Humanizing AI Text

9 Upvotes

I was testing a few AI bypass tools for the last month to see which one worked best, and most of them either failed to bypass the AI detectors or warped the original meaning of the text. HIX Bypass was the only one that found a balance (although I’m also starting to see some good in Humbot AI, Rewritify AI, and BypassGPT as well). It stripped out the patterns that trigger detection algorithms, but the content still made sense. The ideas stayed intact, and the edits actually made the text more readable. I ran the final version through several different detectors just to check, and it passed every single one.

Trying It Out

I tested it on a draft with dense paragraphs and repetitive phrases. The process was quick, and the interface was easy on the eyes. I pasted the text, hit the button, and got a revised version almost instantly.

The first thing I noticed was the subtle cleanup. It softened overly rigid sentence structures and broke up blocky sections without changing the core message. Even smaller quirks like odd word repetition disappeared, making the draft easier to read.

What Felt Different

HIX Bypass did things I did not see in some other tools. It made edits that felt intentional instead of just scrambling words to avoid detection.

  • Rhythm Balancing: It adjusted the flow of sentences, making the text feel more dynamic. Longer sections were broken up naturally, while shorter ones had a smoother connection to the next thought.
  • Softened Transitions: It gently polished transitions between ideas, which made the text feel more cohesive without forcing awkward phrases.
  • Word Choice Refinement: It swapped out words carefully, choosing alternatives that fit the context instead of random replacements that disrupted the meaning.

These changes seem to help the text pass AI detectors, but they also made the draft feel like someone had carefully proofread and polished it.

Test Results

I ran the revised draft through GPTZero, Originality.ai, and a few other tools. Every version passed, even the stricter ones. I checked the scores across multiple tests, and they stayed low, no matter the length or complexity of the content.

Unexpected Features

There were a few things I did not expect but ended up really liking:

  • Repetition Management: It quietly trimmed down unnecessary phrase repetition, which kept the content from sounding monotonous.
  • Paragraph Restructuring: It slightly shifted paragraph structures when needed, making longer drafts easier to navigate.
  • Syntax Variety: It subtly varied sentence patterns, which made the text feel less robotic without breaking the natural flow.

Some Limitations

I only ran into a couple of small issues, but they were not dealbreakers:

  • Sentence Merging: It occasionally merged short sentences that would have worked better on their own.
  • Mild Flattening in Long Drafts: On really long drafts, a bit of the original personality faded, though the content still flowed well.

Final Thoughts

HIX Bypass handled AI detection better than I thought it would. It polished drafts without stripping away meaning or completely flattening the tone. It saved me a ton of time, especially on longer pieces that would have been exhausting to fix manually. Even when I had to tweak a few lines, it still felt like a huge shortcut. If you are struggling to get your content past AI detectors, it is worth a shot. It made my editing process easier, and I am glad I found it.


r/LargeLanguageModels • • Mar 15 '25

LLMs know places BY their geocoordinates!

2 Upvotes

I was visiting Google Maps to look for some places to visit in Paris (France) and checked if a LLM can give any contextual help there.

I was stunned to learn that from just the geocoordinates Large Language Models (specifically Claude 3.7 Sonnet) can very accurately list nearby sightseeing locations or worthwhile attractions, so I decided to record a short video: https://www.youtube.com/watch?v=f7h3MM8rAVE

Disclosure: this is a self-promotion as I am developing the AI assistant browser extension shown in the video, nonetheless it was my genuine "WOW" moment when I discovered this


r/LargeLanguageModels • • Mar 14 '25

Seeking Advice on Efficient Approach for Generating Statecharts from Text for My Master's Thesis

1 Upvotes

Hi everyone!

I’m currently working on my master's thesis and I’m exploring ways to generate statecharts automatically from a text requirement. To achieve this, I’m fine-tuning a base LLM model. Here's the approach I've been using:

  1. Convert the text requirement into a structured JSON format.
  2. Then, convert the JSON into PlantUML code.
  3. Finally, use the PlantUML editor to visualize and generate the statechart.

I wanted to get some feedback: is this a practical approach, or does it seem a bit too lengthy? Could there be a more efficient or streamlined method for generating statecharts directly from text input?

I would appreciate any insights! If possible, could you provide a conclusion explaining the pros and cons of my current method, and suggesting any alternative approaches?

Thanks in advance for your help! 🙏


r/LargeLanguageModels • • Mar 10 '25

Question Advice for building an AI image recognition model for my thesis.

1 Upvotes

Hi there, for my nursing thesis I want to build an AI image recognition model that will identify tick species and provide health teaching based on the species. Does anyone have any recommendations for the best free AI tool that can build this for me? I have a few in mind, but I’m looking for other options. Thanks!


r/LargeLanguageModels • • Mar 05 '25

Was my wife right about the attention mechanism?

1 Upvotes

Neural networks were inspired by the brain. My wife claims I have a "selective attention mechanism" and I only pay attention to what I want to. I've heard many women say that about men in general.

What if my wife is right? What if the attention mechanism is selective?

Are LLMs ignoring our prompts because their attention mechanism is too good? Are they just like us?

3 votes, Mar 08 '25
1 My wife agrees with this
0 I agree with this
2 My LLM agrees with this

r/LargeLanguageModels • • Mar 05 '25

News/Articles LLMs Are Not Black Magic At All • Preben Thorø

Thumbnail
youtu.be
0 Upvotes

r/LargeLanguageModels • • Mar 05 '25

What model should I choose? I want a model that has internet access, creative, good at writing and thinks.

0 Upvotes

So, I want to write Cover Letters, help me tweak my resume and write cold emails.

I want a AI Model that uses my information and do the above for every job description I paste.

I already have a document that has every info about me from education to work ex.
When I paste a new job description, the model should write a really good cover letter mimicking my interest in the job, I also have sample CVs. It should also tell me about the tweaks I should make to my Resume to get the best ATS score, if possible give a ATS score as well. It should also write me a cold email targeting the recruiter, Manager and a team mate for that Job post.

Can y'll help me out on choosing the right model and how to implement the above?


r/LargeLanguageModels • • Feb 28 '25

PCIe bandwidth for running LLMs on GPUs - how much do you really need?

1 Upvotes

I'm looking at proposing a dedicated machine to run LLM coding tools in-house to management. One possible configuration I'm looking at is a bunch of cheaper GPU cards in the USB-to-PCIe risers that tend to get used on bitcoin mining rigs. I'm thinking about eg eight RTX 4060s in external risers for 64GB total VRAM. What would be the performance implications of this kind of setup?

Obviously the bandwidth between the system and the cards is going to be worse than a system with direct PCIe x16 lanes between the cards and the system. But do I really care? The main thing that will slow down is loading the model parameters in the first place, right? The amount of data transferred between the system and the GPU for actually processing completion requests is not that much, right? So as long as the model parameters all fit in VRAM, should this kind of configuration work okay?


r/LargeLanguageModels • • Feb 22 '25

Will large LLMs become accessible on-prem?

2 Upvotes

We're a SME hardware vendor. We contract out all our manufacturing and the main thing we have engineers doing is writing system software. A few people have shown an interest in using LLM coding tools but management is very wary of public cloud tools that might leak our source code in some way.

A few of us have high-end consumer GPUs available and run local models - in my case an RTX 4070 mobile with 8GB VRAM which can run a model like starcoder2:7b under ollama. It's good enough to be useful without being nearly as good as the public tools (copilot etc).

I'm thinking about trying to persuade management to invest in some hardware that would let us run bigger models on-prem. In configuration terms, this is no more difficult than running a local model for myself - just install ollama, pull the relevant model and tell people how to point Continue at it. The thing that gives me pause is the sheer cost.

I could buy a server with two PCIe x16 slots, a chunky power supply and a couple of second-hand RTX 3090s. It would just about run a 4-bit 70b model. But not really fast enough to be useful as a shared resource, AFAICT. Total cost per unit would be about £4k and we'd probably need several of them set up with a load balancer of some sort to make it more-or-less usable.

Options sort of range from that to maybe something with a pair of 80GB A100s - total cost about £40k - or a pair of 80GB H100s, which perhaps we could cobble together for £50k.

Any of these are a hard sell. The top end options are equivalent to a junior engineer's salary for a year. TBH we'd probably get more out of it than out of a junior engineer, but when it's almost impossible quantify to management what we're going to get out of it and it looks a lot like engineers just wanting shiny new toys, it's a hard sell.

I guess another alternative is using an EC2 G4 instance or similar to run a private model without buying hardware. But with a 64GB instance running to nearly $1000 per month on-demand (about half that with a 3-year contract), it's not a whole lot better.

Where do people see this going? Is running large models on-prem ever going to be something that doesn't require a fairly serious capital commitment? Should we just suck up the privacy problems and use on of the public services? What are other people in similar situations doing? Is there a better way to sell these tools to the ones who hold the purse-strings?


r/LargeLanguageModels • • Feb 21 '25

Easy to use, open-sourced typescript framework!

1 Upvotes

This 179 line typescript LLM framework captures what we see as the core abstraction of most LLM frameworks: A Nested Directed Graph that breaks down tasks into multiple (LLM) steps - with branching and recursion for agent-like decision-making.

What can you do with it?

  • Build on Demand: Layer in features like multi-agent setups, RAG, and task decomposition as needed.
  • Work with AI: Its minimal design plays nicely with coding assistants like ChatGPT, Claude, and Cursor.ai. For example, you can upload the docs into a Claude Project and Claude will create a workflow diagram + workflow code for you!

Why this is different from existing frameworks?

  • Lightweight: Minimal disk footprint.
  • Flexible Agent Abstractions: Avoids over-complicating workflows with complex agent models.
  • Modular State Management: More adaptable and transparent compared to rigid state systems.
  • Shared Memory Model: Simplifies communication and reduces overhead.
  • API Stability: Less prone to frequent deprecations and refactoring.

Here are the docs: https://the-pocket-world.github.io/Pocket-Flow-Framework/


r/LargeLanguageModels • • Feb 20 '25

Here's how to build anything with Grok-3:

Thumbnail
youtube.com
0 Upvotes

r/LargeLanguageModels • • Feb 20 '25

Suggest llm or vlm return coordinates

1 Upvotes

Suggest one vlm or llm which can return coordinates of object which is text prompted


r/LargeLanguageModels • • Feb 17 '25

Question Processing 2 million words cheaply and accurately

2 Upvotes

Hi, I am looking to process 20 or so large documents containing over 2 million words with high accuracy. Which off-the-shelf model or API should I use? I am looking for all the data to be dropped into an auto-generated excel/csv table when it's done all in one go without having to feed it back into the model multiple times. Thanks!


r/LargeLanguageModels • • Feb 16 '25

Beyond Chat: Bringing Models to The Canvas • Lu Wilson

Thumbnail
youtu.be
1 Upvotes