19,137 Topics

Member Avatar for
Member Avatar for shane_18

Hii I am a developer working on a blockchain MVP development. I want to add MVP features to the app, but I am not sure where to start. Can anyone provide some guidance? Thank You

Member Avatar for karanchauhan7
-1
51
Member Avatar for Avner .H.

Hello everyone! I want to use bash from python, however the os.system([I]command[/I]) seems to act only on one command at a time. I want to use complete commands, also containing control flow statements, like If and While, and to call them from python. something like this code in bash: T1="foo" …

Member Avatar for Reverend Jim
0
1K
Member Avatar for usmanmalik57

Stock price prediction is a challenging task that requires analyzing historical trends, market sentiments, economic indicators, and company performance. One of the popular methods for stock price prediction is using deep learning models, such as convolutional neural networks (CNNs). CNNs are a type of neural network that can extract features …

Member Avatar for Kayathri
2
703
Member Avatar for Reverend Jim

This is a little project I threw together for exchanging messages between two computers. It started as a way for my wife and me to exchange messages when one of us was inside and the other outside in the hammock. I tried various approaches involving a shared folder (a bit …

3
120
Member Avatar for Vijay_34

So here, I am gonna to ask developers around which is the most popular language is used to develop a game for students or professionals.

Member Avatar for fabwebstudio
2
171
Member Avatar for whitmanmark

I’m working on a mid-sized TypeScript project and running into a weird issue with type narrowing. Inside a callback function (specifically inside a .map()), TypeScript refuses to narrow a union type even though I’ve added all the checks. Outside the callback it works fine. Is this a known limitation, or …

Member Avatar for WendyDolan
2
49
Member Avatar for palak231

Hi this is Palak, I am in third year of my engineering and my interest and strength is python, to enhance my skills into next level I need more study in this field therefore I want to know which python course will be best for me to enhance my skills …

Member Avatar for mamta25
0
167
Member Avatar for tsgiannis

Hey everyone, I’ve been working on a side project that I think might solve a pain point for a lot of Python devs: a high-performance, Excel-like DataGridView for Python apps. If you’ve ever wanted to embed a powerful, customizable grid (think sorting, filtering, cell editing) into your tools—but without the …

Member Avatar for Reverend Jim
0
119
Member Avatar for Dastifysolution

I’m currently working on my final year project in python , developing an Online Health Management System. These days, I’m focusing on documenting the project. Does anyone know of any useful or professional documentation samples available online, or could anyone share some references? It would really help me improve the …

Member Avatar for rproffitt
0
44
Member Avatar for usmanmalik57

In my previous article, I presented a [comparison of GPT-4o and Claude 3.5 Sonnet for multi-label text classification](https://www.daniweb.com/programming/computer-science/tutorials/542629/openai-gpt-4o-vs-claude-3-5-sonnet-for-multi-label-text-classification). The accuracies achieved by both models were relatively low. Fine-tuning is one solution to overcome the low performance of large-language models. With fine-tuning, you can incorporate custom domain knowledge into an LLM's …

Member Avatar for Dani
3
385
Member Avatar for cored0mp

I had some fun this weekend having a go at pdfkit with mixed results. Can anyone nominate a candidate for best PDF writing?

Member Avatar for Advika_1
0
273
Member Avatar for usmanmalik57

On April 14, 2025, OpenAI released [GPT-4.1](https://openai.com/index/gpt-4-1/) — a model touted as the new state-of-the-art, outperforming GPT-4o on all major benchmarks. As always, I like to evaluate new LLMs on simple tasks like text classification and summarization to see how they compare with current leading models. In this article, I …

Member Avatar for amystivens
3
185
Member Avatar for Reverend Jim

If anyone is interested, [this documentary](https://www.youtube.com/watch?v=GfH4QL4VqJ0) just got posted to Youtube.

Member Avatar for SCBWV
0
31
Member Avatar for Reverend Jim

I subscribe to several Python newsletters, one of which comes with at least partial access to tutorials. To anyone who has dabbled in Python, one of the first things recommended is to enter the command import this which renders the output Beautiful is better than ugly. Explicit is better than …

Member Avatar for Carl_22
1
82
Member Avatar for mr_meeseeks

for ref: [code_link see main](https://github.com/yotamarker/LivinGrimoire/tree/main/livingrimoire%20start%20here/LivinGrimoire%20python%20easy%20start%20packet) as you can see this structure allows the coder to add functionality(skills) to the object with 2 main ways: 1 with code a brain.add_skill(Skill()) 2 the structure can be utilized to add skills by pasting their files into the DLC directory, for example: pasting the …

0
25
Member Avatar for mr_meeseeks

what are the pros and cons of controlling a smart house via: MCP servers (via LLMs) versus the livingrimoire software design pattern (with skill classes for a more heuristic control)

Member Avatar for trcooke
0
53
Member Avatar for usmanmalik57

[LangGraph](https://www.langchain.com/langgraph) is an agentic framework for orchestrating complex language model workflows as graphs of nodes and edges. Subgraphs in LangGraph are simply graphs used as nodes within a larger graph. In other words, an entire graph (with its internal nodes and logic) can be encapsulated and treated as a single …

1
92
Member Avatar for lojoxi

Hi Everyone, Web development can be both exciting and challenging, but having the right tools makes all the difference. If you're starting out or looking to improve your workflow, consider using popular frameworks like React or Vue for streamlined front-end development. On the back end, Node.js and Django are solid …

Member Avatar for wrteam
1
359
Member Avatar for Dani

For me, it's python and node.js (backend javascript). I feel like those are two languages that are *everywhere* these days. I'd also love to get into websockets or server-sent events to replace the long polling PHP chat we currently have going on (eek). A couple of years ago, I tried …

Member Avatar for trcooke
0
26
Member Avatar for Reverend Jim

I've been reprocessing a bunch of home videos by running them through various ffmpeg filters, typically the deshake filter. In order to see how much of a difference the filter makes it is nice to be able to play the before and after files side by side. The wxPython and …

Member Avatar for Reverend Jim
2
74
Member Avatar for Dani

So I've gotten past step one: Creating an account with OpenAI API. However, I'm completely overwhelmed by [all of the models](https://platform.openai.com/docs/models). How do I know which one to pick? There seem to be so many! My specific use case is [explained here](https://www.daniweb.com/programming/threads/543649/how-can-i-use-ai-to-categorize-forum-threads).

1
100
Member Avatar for usmanmalik57

[OpenAI](https://openai.com/) and [Anthropic](https://www.anthropic.com/) are two AI giants delivering state-of-the-art large language models for various tasks. In a [previous article](https://www.daniweb.com/programming/computer-science/tutorials/542132/comparing-gpt-4o-vs-claude-3-5-sonnet-for-zero-shot-text-classification), I compared OpenAI GPT-4o and Anthropic Claude 3.5 sonnet models for text classification tasks. That article was published almost a year ago. Since then, both OpenAI and Anthropic have released state-of-the-art …

1
112
Member Avatar for Skill_4

Hay my name is Dviesh, Iam looking for python development course in Jaipur . SO lets me Disceusss best agecny and comapny for leanding python development course in jaipur .

Member Avatar for rproffitt
0
55
Member Avatar for trueriver

I'm just coding something for fun right now and I'm stuck on looping. I'm using a while loop that only runs if my variable is 0. Right now, I set the variable to 0 but the code was after the loop. How do I fix this? import time import sys …

Member Avatar for Dani
0
52
Member Avatar for Trunar

The project is: -------------------------------- Write a program that computes and prints the average of the numbers in a text file. You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design. Create a text file and name as numbers.txt and add the …

Member Avatar for Dani
1
2K
Member Avatar for Steph102

Hi everyone. I am just learning Python on class so I am really at the basic. I need to write a python program that will flip a coin 100 times and then tell how many times tails and heads were flipped. This is what I have so far but I …

Member Avatar for Reverend Jim
2
16K
Member Avatar for trcooke

Like Ron McLeod, [who we met yesterday](https://www.daniweb.com/community-center/say-hello/threads/543368/hi-everyone-i-m-ron-mcleod), I'm a moderator and administrator over at the CodeRanch.com forums. I'm a Software Engineer, currently working as a Software Architect for a medical technology company in Belfast, Northern Ireland. We use Java, JavaScript, TypeScript, Python, we have used many of the related tooling …

Member Avatar for Dani
4
52
Member Avatar for usmanmalik57

Large language models are trained on a fixed corpus, and their knowledge is often limited by the documents they are trained on. Techniques like retrieval augmented generation, continuous pre-training, and fine-tuning enhance an LLM's default knowledge. However, these techniques can still not enable an LLM to answer queries that require …

1
236
Member Avatar for Hichem_MG

Hi everyone, I'm Hichem. A web developer, Python enthusiast and problem solver. I'm happy to be a member of the DaniWeb community.

Member Avatar for Reverend Jim
0
15
Member Avatar for usmanmalik57

This tutorial demonstrates how to build an AI agent that queries SQLite databases using natural language. You will see how to leverage the [LangGraph framework](https://www.langchain.com/langgraph) and the [OpenAI GPT-4o](https://openai.com/index/gpt-4/) model to retrieve natural language answers from an SQLite database, given a natural language query. So, let's begin without ado. ## …

Member Avatar for Pelorus_1
2
800
Member Avatar for usmanmalik57

In a [previous article](https://www.daniweb.com/programming/computer-science/tutorials/543028/text-classification-and-summarization-with-deepseek-r1-distill-llama-70b), I presented a comparison of [DeepSeek-R1-Distill-Llama-70b](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-70B) with the [DeepSeek-R1-Distill-Qwen-32B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B) for text classification and summarization. Both these models are distilled versions of the original DeepSeek R1 model. Recently, I wanted to try the original version of the DeepSeek R1 model using the DeepSeek API. However, I was …

1
211
Member Avatar for usmanmalik57

In the [last article](https://www.daniweb.com/programming/computer-science/tutorials/542973/benchmarking-deepseek-r1-for-text-classification-and-summarization#post2300447), I explained how you can use the [DeepSeek-R1-Distill-Qwen-32B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B) model for text classification and summarization problems. In this article, we will use the [DeepSeek-R1-Distill-Llama-70b](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Llama-70B) for the same tasks. Following results from the [DeepSeek-AI's official paper](https://arxiv.org/pdf/2501.12948) show that `DeepSeek-R1-Distill-Llama-70b` outperform the other distilled models on 4 out of …

Member Avatar for Pelorus_1
0
1K
Member Avatar for mark_hahn

I need to develop an application where I give an llm a piece of code, like maybe a function, and then the llm finds the closest match that does the same thing. It would look in one or more source files. The thing found may be worded differently. If the …

Member Avatar for Salem
0
73
Member Avatar for bkelly13

Environment is Windows 11 and Visual Studio 2019 using Python. I am a Python novice. The goal is a project with multiple dialogs. Not a web project, just many dialogs. From VS some options are Django, Flask, Bottle, Jade, and more. Searches for each of those provide simplistic descriptions without …

Member Avatar for Reverend Jim
0
74
Member Avatar for Ccrobinson001

When running the following command I get an error > Quoted Text Here python3 -m pip install -r requirements.txt Defaulting to user installation because normal site-packages is not writeable Collecting faster-whisper==1.0.2 (from -r requirements.txt (line 1)) Downloading faster_whisper-1.0.2-py3-none-any.whl.metadata (15 kB) Collecting groq==0.6.0 (from -r requirements.txt (line 2)) Downloading groq-0.6.0-py3-none-any.whl.metadata (13 …

Member Avatar for Pebble94464
0
122
Member Avatar for usmanmalik57

In my previous article, I explained how to fine-tune [OpenAI GPT-4o model for natural language processing tasks](https://www.daniweb.com/programming/computer-science/tutorials/542333/how-to-fine-tune-the-openai-gpt-4o-model-the-wait-is-finally-over). In OpenAI DevDay, held on October 1, 2024, OpenAI announced that users can now fine-tune OpenAI vision and multimodal models such as GPT-4o and GPT-4o mini. The best part is that fine-tuning vision …

Member Avatar for RKE2
2
431
Member Avatar for usmanmalik57

DeepSeek-R1 is a groundbreaking family of reinforcement learning (RL)-driven AI models developed by the Chinese AI firm [DeepSeek](https://www.deepseek.com/). It is designed to rival industry leaders like OpenAI and Google in complex decision-making and optimization problems. In this article, we will benchmark the DeepSeek R1 model for text classification and summarization …

1
1K
Member Avatar for Audun

Hi I want to make use of GitHub-programs, and so I downloaded a bunch of Python-tools. When I run this command in "Python 3.12", which looks like CMD to me, I get a syntax error. "To create a virtual environment, Python supplies a built in venv module which provides the …

Member Avatar for pathofbuilding
1
130
Member Avatar for algieba

Hi there, I'm algieba, a new poster. I'll share and record some programming tricks while my coding life. Topics will reated to Python, C++, CI/CD, Machine Learning, Deep Learning.

Member Avatar for Reverend Jim
0
13
Member Avatar for usmanmalik57

Open-source LLMs are gaining significant traction due to their ability to match the performance of advanced proprietary LLMs. These models are free to use and allow users to modify their source code or fine-tune them on their own systems, making them highly versatile for various applications. Alibaba's [Qwen](https://www.alibabacloud.com/en/solutions/generative-ai/qwen?_p_lc=1) and Meta's …

4
1K
Member Avatar for cored0mp

A script that was working fine on 100 records per batch choked when I fed it 1,000 records. It gave: mysql.connector.errors.OperationalError: 1040 (08004): Too many connections So I went ahead and made sure to connect.close() everywhere that I opened a connection, and the script made it much further but eventually …

Member Avatar for cored0mp
1
381
Member Avatar for usmanmalik57

In a previous article, I explained [how to extract tabular data from PDF image documents using Multimodal Google Gemini Pro](https://www.daniweb.com/programming/computer-science/tutorials/541449/pdf-image-table-extractor-web-app-with-google-gemini-pro-and-streamlit#post2296083). However, there are a couple of disadvantages with Google Gemini Pro. First, Google Gemini Pro is not free, and second, it needs complex prompt engineering to retrieve table, columns, and …

Member Avatar for mansha99
2
3K
Member Avatar for usmanmalik57

On November 20, 2024, OpenAI updated its GPT-4o model, claiming it is more creative and accurate on several benchmarks. In this article, I compare the GPT-4o November update with the previous version (August update) for text summarization and classification tasks. By the end of this article, you will see whether …

2
251
Member Avatar for Mansour_4

Hello I want to learn python about sequentialfile And definition just a hobby in my spare time Thank u all

Member Avatar for Dani
0
24
Member Avatar for Johannes C.

**Turning ideas into executable code has never been easier. This is the story of how I created a small program that turns your photos into pixel art in less than half an hour – with a little help from my AI assistant.** ![ai-coding-assistant.jpg](https://static.daniweb.com/attachments/4/167a40014fbe0091604c395e88cacd5e.jpg) The program is called **PixelPotion**, and you …

Member Avatar for Johannes C.
2
232
Member Avatar for usmanmalik57

In one of my previous articles, you saw a [comparison of GPT-4o vs. Claude 3.5 sonnet for zero-shot text classification](https://www.daniweb.com/programming/computer-science/tutorials/542132/comparing-gpt-4o-vs-claude-3-5-sonnet-for-zero-shot-text-classification). In that article; we performed multi-class text classification where input tweets belonged to one of the three categories. In this article, we will go a step further and perform zero-shot …

2
263
Member Avatar for usmanmalik57

On September 25, 2024, Meta released [the Llama 3.2 series of multimodal models](https://ai.meta.com/blog/llama-3-2-connect-2024-vision-edge-mobile-devices/). The models are lightweight yet extremely powerful for image-to-text and text-to-text tasks. In this article, you will learn how to use the Llama 3.2 Vision Instruct model for general image analysis, graph analysis, and facial sentiment prediction. …

3
516
Member Avatar for usmanmalik57

This article explains how to create a retrieval augmented generation (RAG) chatbot in LangChain using open-source models from [Hugging Face serverless inference API](https://huggingface.co/docs/api-inference/en/index). You will see how to call large language models (LLMs) and embedding models from Hugging Face serverless inference API using LangChain. You will also see how to …

2
835
Member Avatar for Viraj_Sharma

How are you all, I am a python enthusiast and a very avid learner. Looking forward to learn from you all

Member Avatar for Reverend Jim
1
15
Member Avatar for usmanmalik57

Open-source LLMS, owing to their comparable performance with advanced proprietary LLMs, have been gaining immense popularity lately. Open-source LLMs are free to use, and you can easily modify their source code or fine-tune them on your systems. [Alibaba's Qwen](https://www.alibabacloud.com/en/solutions/generative-ai/qwen?_p_lc=1) and [Meta's Llama](https://ai.meta.com/blog/meta-llama-3-1/) series of models are two major players in …

Member Avatar for Brandon_38
2
3K

The End.