id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_78237430 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Integrating GPT-4 with Team Foundation Server for Data Insights | Integrating GPT-4 with Team Foundation Server for Data Insights
I'm exploring options to integrate GPT-4, the latest version of OpenAI's powerful language model, with Team Foundation Server (TFS). My objective is to leverage GPT-4's capabilities to gain insights from the data stored within our TFS environment.
I'm won... | https://stackoverflow.com/questions/78237430/integrating-gpt-4-with-team-foundation-server-for-data-insights | artificial-intelligence, openai-api, gpt-3, gpt-4 | 1,711,621,195 |
se_78294529 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Troubleshooting Azure Search: Embedding Data Not Populating in Index with Text Split and Azure Embedding Skill | Troubleshooting Azure Search: Embedding Data Not Populating in Index with Text Split and Azure Embedding Skill
Thank you for your suggestion @JayashankarGS. I followed your advice and installed the beta version of @azure/search-documents using npm i @azure/search-documents@12.1.0-beta.1. After updating the library, I ... | https://stackoverflow.com/questions/78294529/troubleshooting-azure-search-embedding-data-not-populating-in-index-with-text-s | azure, artificial-intelligence, embed | 1,712,601,489 |
se_78344547 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Most efficient way to fine tune SDXL for range of product | Most efficient way to fine tune SDXL for range of product
I want to fine tune SDXL using LoRA on a range of product so that SDXL can generate images of those product later on.
I have many products. What is the most efficient way to fine tune?
Do I just train a single LoRA for all the product or multiple ones for each ... | https://stackoverflow.com/questions/78344547/most-efficient-way-to-fine-tune-sdxl-for-range-of-product | machine-learning, deep-learning, artificial-intelligence, stable-diffusion, fine-tuning | 1,713,407,456 |
se_78341186 | stackoverflow | ARTIFICIAL_INTELLIGENCE | FastAPI Application python error JSON not serializable | FastAPI Application python error JSON not serializable
I'm coding an API with FastAPI for this project TripoSR
My code at this moment is following (I only need this 2 functions):
from fastapi import FastAPI
from gradio_app import preprocess, generate
# initialise FastAPI instance
app = FastAPI()
@app.get("/tripo-api... | https://stackoverflow.com/questions/78341186/fastapi-application-python-error-json-not-serializable | python, artificial-intelligence, fastapi | 1,713,358,984 |
se_78340533 | stackoverflow | ARTIFICIAL_INTELLIGENCE | FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcudnn.so.8: cannot open shared object file: No such file or directory | FAIL : Failed to load library libonnxruntime_providers_cuda.so with error: libcudnn.so.8: cannot open shared object file: No such file or directory
terminate called after throwing an instance of 'Ort::Exception'
what(): /onnxruntime_src/onnxruntime/core/session/provider_bridge_ort.cc:1193 onnxruntime::Provider& onn... | https://stackoverflow.com/questions/78340533/fail-failed-to-load-library-libonnxruntime-providers-cuda-so-with-error-libcu | cmake, artificial-intelligence, onnxruntime | 1,713,352,260 |
se_78312158 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Give more weights to some input features for variational auto encoder | Give more weights to some input features for variational auto encoder
I made a variation auto encoder to augment data.
It is working fine, but I would like some columns in the augmented data to have more variations than the others.
For example, I actually have this data generated:
100 16 2.6
105 16.6 2.7
110 16.7 ... | https://stackoverflow.com/questions/78312158/give-more-weights-to-some-input-features-for-variational-auto-encoder | pytorch, artificial-intelligence, data-augmentation | 1,712,857,158 |
se_76572896 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to use SQLDatabaseChain from LangChain with memory? | How to use SQLDatabaseChain from LangChain with memory?
I want to create a chain to make query against my database. Also I want to add memory to this chain.
Example of dialogue I want to see:
Query: Who is an owner of website with domain domain.com?
Answer: Boba Bobovich
Query: Tell me his email
Answer: Boba Bobovich... | https://stackoverflow.com/questions/76572896/how-to-use-sqldatabasechain-from-langchain-with-memory | python, artificial-intelligence, openai-api, langchain, py-langchain | 1,687,953,125 |
se_78340774 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Google Gemini API giving back inaccurate information | Google Gemini API giving back inaccurate information
I am trying to use Google Gemini's API in order to generate responses for a list of buildings in NYC. I have structured the prompt to give a format of a list of bullet points about building information. When writing the same prompt in the browser in Gemini, I am get... | https://stackoverflow.com/questions/78340774/google-gemini-api-giving-back-inaccurate-information | json, output, backend, artificial-intelligence, google-gemini | 1,713,355,042 |
se_78228233 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can i import the document in Llamaindex | How can i import the document in Llamaindex
I am trying to work with llama index and constantly i coming across the error of loading the document.
#Load and index the data with the simpleDirectoryReader of Llama Index
reader = SimpleDirectoryReader(input_files=["./modals/llamaindex test/data/paul_graham_essay.txt"])
d... | https://stackoverflow.com/questions/78228233/how-can-i-import-the-document-in-llamaindex | artificial-intelligence, huggingface-transformers, llama-index | 1,711,488,157 |
se_78312867 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Computing the Degree, Closeness, Eigenvector, Katz, PageRank, and Betweenness centralities and accepting input from a file | Computing the Degree, Closeness, Eigenvector, Katz, PageRank, and Betweenness centralities and accepting input from a file
i was trying to read from a text file in phyton but it's not doing it properly.
def read_city_data(file_path):
cities = {}
with open(file_path, 'r') as file:
next(file) # Skip hea... | https://stackoverflow.com/questions/78312867/computing-the-degree-closeness-eigenvector-katz-pagerank-and-betweenness-ce | python, artificial-intelligence, eigenvector, pagerank | 1,712,866,815 |
se_78331989 | stackoverflow | ARTIFICIAL_INTELLIGENCE | My alpha beta search algo is slow for ultimate tic tac toe AI bot | My alpha beta search algo is slow for ultimate tic tac toe AI bot
I am doing a school project where i am trying to write an alpha beta serach algorithm to solve ultimate tic tac toe. (ultimate tic tac toe is just a 3x3 grid of normal tic tac toes where each move you place, the next move (so opponent) gets sent to that... | https://stackoverflow.com/questions/78331989/my-alpha-beta-search-algo-is-slow-for-ultimate-tic-tac-toe-ai-bot | algorithm, artificial-intelligence, minimax, heuristics, alpha-beta-pruning | 1,713,238,482 |
se_78336685 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to do multithreading in python for Raspberry pi | How to do multithreading in python for Raspberry pi
I was trying to make a project related to cv in which i want to send a video stream got from camera of raspberry pi to a different laptop along with the objects detected in the frames.
each frame takes about 1.7s to be predicted so i want to send the boxes only after... | https://stackoverflow.com/questions/78336685/how-to-do-multithreading-in-python-for-raspberry-pi | python-3.x, operating-system, artificial-intelligence, python-multithreading, raspberry-pi4 | 1,713,292,395 |
se_78331778 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I am trying to create training data for a game in python. For that, i chose to create a two dimensional list. But list is not updating properly | I am trying to create training data for a game in python. For that, i chose to create a two dimensional list. But list is not updating properly
This is the part of the code i wrote:
for e in range(episodes):
qm=random.randint(0,5)
env.game(action)
fps.tick(1)
screen.fill(bgcolor)
s=env.get_state()
... | https://stackoverflow.com/questions/78331778/i-am-trying-to-create-training-data-for-a-game-in-python-for-that-i-chose-to-c | python, list, artificial-intelligence, dqn | 1,713,233,358 |
se_78330865 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Problem with LCEL lanchais RAG sequential chains | Problem with LCEL lanchais RAG sequential chains
I'm encountering an issue while attempting to connect chains in my LCEL-langchain-Python code. Specifically, I'm receiving an error message that says 'expected string or buffer'. I've thoroughly tested all relevant variables, and they all belong to the str class.
Intere... | https://stackoverflow.com/questions/78330865/problem-with-lcel-lanchais-rag-sequential-chains | python, machine-learning, artificial-intelligence, langchain | 1,713,212,437 |
se_72761152 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to use plot_model to convert a model as png? | How to use plot_model to convert a model as png?
I'm new to this and still learning about how to build a simple BiLSTM model for my time series prediction, i somehow manage to create one and now i want to convert the model summary into a png file.
Here is my code
from tensorflow.keras.models import Sequential
model_o... | https://stackoverflow.com/questions/72761152/how-to-use-plot-model-to-convert-a-model-as-png | keras, artificial-intelligence, bilstm | 1,656,242,770 |
se_78317989 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Is it possible to fine-tune a pretrained word embedding model like vec2word? | Is it possible to fine-tune a pretrained word embedding model like vec2word?
I'm working on semantic matching in my search engine system. I saw that word embedding can be used for this task. However, my dataset is very limited and small, so I don't think that training a word embedding model such as word2vec from scrat... | https://stackoverflow.com/questions/78317989/is-it-possible-to-fine-tune-a-pretrained-word-embedding-model-like-vec2word | python, nlp, artificial-intelligence, word2vec, word-embedding | 1,712,944,676 |
se_78329031 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Understanding the various ML Export Format | Understanding the various ML Export Format
Out of the various types of ML Export Formats - YAML, Pickle, ONNX, etc. - which one do you use and why? For example, is there any benefit to choosing Pickle over ONNX?
I have tried to find expert opinions of this online, but nothing pops up. | https://stackoverflow.com/questions/78329031/understanding-the-various-ml-export-format | machine-learning, artificial-intelligence | 1,713,190,593 |
se_78320486 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Trying to get API response from ollama setup in Azure virtual machine (ubuntu) | Trying to get API response from ollama setup in Azure virtual machine (ubuntu)
I installed and configured the ollama on my Azure virtual machine running ubuntu and trying to make the API call from another machine, kind of like I'm trying to set up my own ollama server and facing issue with API connection.
I tried runn... | https://stackoverflow.com/questions/78320486/trying-to-get-api-response-from-ollama-setup-in-azure-virtual-machine-ubuntu | azure, network-programming, artificial-intelligence, ollama | 1,713,009,014 |
se_78323769 | stackoverflow | ARTIFICIAL_INTELLIGENCE | as i am running the code i am getting error that my ollama has no attribute bind_functions, the llm i am using is ollama model llama -2 | as i am running the code i am getting error that my ollama has no attribute bind_functions, the llm i am using is ollama model llama -2
# Setup your supervisor, conditional logic, and integrate the nodes into the workflow
members = ["Web_Searcher", "Web_Searcher_Quality","Blog_Searcher", "Blog_Searcher_Quality", "Cont... | https://stackoverflow.com/questions/78323769/as-i-am-running-the-code-i-am-getting-error-that-my-ollama-has-no-attribute-bind | artificial-intelligence, langchain, multi-agent, ollama | 1,713,097,143 |
se_78324489 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Scatter Plot: Value Error, Unable to Coerce to Series | Scatter Plot: Value Error, Unable to Coerce to Series
I am currently working on a residual plot visualization for my perceptron. As the title states I am running into an error when calling pyplot.scatter. It seems as though the function wants n_samples to be an an array rather than 100 individual samples? If my unders... | https://stackoverflow.com/questions/78324489/scatter-plot-value-error-unable-to-coerce-to-series | python, matplotlib, scikit-learn, artificial-intelligence, valueerror | 1,713,112,185 |
se_78324118 | stackoverflow | ARTIFICIAL_INTELLIGENCE | how to get 3-D body measurements through and image and wirte a code for it? | how to get 3-D body measurements through and image and wirte a code for it?
For an E-commerce platform, I am trying to get the T-shirt/Shirt sizes for my customers so ia m trying to devolop code for this. Which can do image processing(basically they will give an image and we will give there perfect size for them or mo... | https://stackoverflow.com/questions/78324118/how-to-get-3-d-body-measurements-through-and-image-and-wirte-a-code-for-it | python, matplotlib, image-processing, artificial-intelligence | 1,713,105,025 |
se_78318458 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Question about Xavier Initialization for a Transformer model | Question about Xavier Initialization for a Transformer model
I am coding since I was little but I started python recently and I am struggling to program a simple Transformer model that predicts the next word of a sequence. I am experimenting with max input sequence length set to 6 and token embedding size 512. When th... | https://stackoverflow.com/questions/78318458/question-about-xavier-initialization-for-a-transformer-model | python, artificial-intelligence, transformer-model | 1,712,951,358 |
se_78299566 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Can Fast Downward planner deal with conditional effects like 'when'? | Can Fast Downward planner deal with conditional effects like 'when'?
I'm encountering an issue with a particular section of code.
This is the domain file:
(define (domain gripper-strips)
(:predicates (room ?r)
(ball ?b)
(gripper ?g)
(at-robby ?r)
(at ?b ?r)
(free ?g)
... | https://stackoverflow.com/questions/78299566/can-fast-downward-planner-deal-with-conditional-effects-like-when | artificial-intelligence, pddl | 1,712,676,674 |
se_79963083 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to show PII in the final chat answer while keeping it out of the LLM context? (sanitize → infer → re-hydrate) | How to show PII in the final chat answer while keeping it out of the LLM context? (sanitize → infer → re-hydrate)
I'm building an AI chat assistant for an internal sales/CRM system. It uses tool/function calling: the LLM picks a backend tool, tools return JSON from our APIs, and the orchestrator sends tool results bac... | https://stackoverflow.com/questions/79963083/how-to-show-pii-in-the-final-chat-answer-while-keeping-it-out-of-the-llm-context | .net, chatbot, large-language-model, sensitive-data, pii | 1,781,861,496 |
se_79880260 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Building a RAG chatbot where users can upload their own documents mid-conversation — how are you guys handling this? | Building a RAG chatbot where users can upload their own documents mid-conversation — how are you guys handling this?
I'm building a RAG-based chatbot (using OpenAI + FastAPI + Weaviate) and I've hit a point where I need to let users upload their own documents (PDFs, DOCX, images, TXT) directly inside a chat thread and... | https://stackoverflow.com/questions/79880260/building-a-rag-chatbot-where-users-can-upload-their-own-documents-mid-conversati | large-language-model, weaviate, openaiembeddings | 1,769,899,419 |
se_79900654 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Improve the RAG chatbot result | Improve the RAG chatbot result
I am building a local RAG chatbot using LangChain and ChromaDB (PersistentClient). I’m encountering 'hallucinations' when the similarity search returns documents with a low relevance score. How can I implement a Self-Correction loop in LangChain that:
1. Grades the documents retrieved fr... | https://stackoverflow.com/questions/79900654/improve-the-rag-chatbot-result | artificial-intelligence, langchain, large-language-model, chromadb, rag | 1,772,608,712 |
se_79992139 | stackoverflow | ARTIFICIAL_INTELLIGENCE | limitations of manually constructed RAG prompt | limitations of manually constructed RAG prompt
I am implementing a simple RAG pipeline using Hugging Face Transformers. After retrieving the top-K documents using vector similarity search, I concatenate the retrieved chunks into a prompt and pass the prompt to a local LLM.
The relevant part of my implementation is:
de... | https://stackoverflow.com/questions/79992139/limitations-of-manually-constructed-rag-prompt | python, large-language-model, rag | 1,786,429,696 |
se_79991381 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Which open-source LLM supports tool calling and can be self-hosted for a Node.js application? | Which open-source LLM supports tool calling and can be self-hosted for a Node.js application?
I'm building a Node.js application that needs an AI assistant capable of:
Tool/function calling
Running locally or self-hosted
Commercial use
Integration with REST APIs
Good performance on a single GPU or CPU
I've look... | https://stackoverflow.com/questions/79991381/which-open-source-llm-supports-tool-calling-and-can-be-self-hosted-for-a-node-js | tooling-recommendation, node.js, open-source, large-language-model, ollama | 1,786,116,988 |
se_77359161 | stackoverflow | ARTIFICIAL_INTELLIGENCE | BFloat16 is not supported on MPS (macOS) | BFloat16 is not supported on MPS (macOS)
I accessed a Llama-based model on Huggingface named: "LeoLM/leo-hessianai-7b-chat".
I downloaded the model on my Mac with the device set as 'MPS'. The download worked, however when I want to test the model I get following error:
TypeError: BFloat16 is not supported on MPS
Abov... | https://stackoverflow.com/questions/77359161/bfloat16-is-not-supported-on-mps-macos | python, macos, large-language-model, llama, bfloat16 | 1,698,234,324 |
se_79948695 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I avoid using LLMs as a software developer? | How can I avoid using LLMs as a software developer?
Introduction
I've been developing software very successfully for many years. The reason I have chosen this profession is multifold:
I'm a creative person and I need to create things
I have an insatiable drive to think
Financial compensation one may expect for doin... | https://stackoverflow.com/questions/79948695/how-can-i-avoid-using-llms-as-a-software-developer | large-language-model | 1,780,090,787 |
se_79903575 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Resolving Concurrency Bottlenecks in LangChain's RunnableParallel with ChromaDB PersistentClient | Resolving Concurrency Bottlenecks in LangChain's RunnableParallel with ChromaDB PersistentClient
I am implementing a production-ready RAG pipeline using LangChain and ChromaDB (PersistentClient). To minimize latency, I use RunnableParallel to execute the similarity search and initial metadata filtering simultaneou... | https://stackoverflow.com/questions/79903575/resolving-concurrency-bottlenecks-in-langchains-runnableparallel-with-chromadb | python, artificial-intelligence, langchain, large-language-model, chromadb | 1,773,025,277 |
se_79924929 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to reduce background noise when using voice AI APIs? | How to reduce background noise when using voice AI APIs?
I am using a voice-based Generative AI agent, and in real-world scenarios with significant background noise, How can I reduce background noise to improve input clarity and generate more accurate responses?
What are the best practices to reduce background noise i... | https://stackoverflow.com/questions/79924929/how-to-reduce-background-noise-when-using-voice-ai-apis | artificial-intelligence, large-language-model, agent, audio-processing, openai-agents | 1,776,101,598 |
se_77709076 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Certificate verify error while using the Anthropic client SDK | Certificate verify error while using the Anthropic client SDK
I am trying to use the Anthropic client SDK to call the API and get the below error.
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self
signed certificate in certificate chain (_ssl.c:1129)
How can I overcome this? | https://stackoverflow.com/questions/77709076/certificate-verify-error-while-using-the-anthropic-client-sdk | openai-api, large-language-model, claude | 1,703,366,114 |
se_79930598 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to use LangChain Agent with tools in a Python project? | How to use LangChain Agent with tools in a Python project?
I’m trying to build a simple project using LangChain where an agent can decide when to call a tool (e.g., a calculator or API).
I understand basic chains, but I’m confused about:
When to use a Chain vs an Agent
How to properly define and register tools
How ... | https://stackoverflow.com/questions/79930598/how-to-use-langchain-agent-with-tools-in-a-python-project | python, artificial-intelligence, langchain, large-language-model | 1,776,934,561 |
se_79934606 | stackoverflow | ARTIFICIAL_INTELLIGENCE | RAG pipeline returns correct answers but wrong page citations and occasional hallucinations (LangGraph + cross-encoder) | RAG pipeline returns correct answers but wrong page citations and occasional hallucinations (LangGraph + cross-encoder)
I built a RAG pipeline using LangGraph with the following flow:
rewrite → hybrid retrieve → cross-encoder rerank → parent expansion → grounded generation
The system enforces strict grounding (returns... | https://stackoverflow.com/questions/79934606/rag-pipeline-returns-correct-answers-but-wrong-page-citations-and-occasional-hal | python, artificial-intelligence, large-language-model, rag, retrieval-augmented-generation | 1,777,630,342 |
se_79907967 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What are the best-practice architectural workflows for LLM-based contract compliance agents? | What are the best-practice architectural workflows for LLM-based contract compliance agents?
I am designing an Agentic Workflow for automated contract compliance auditing, where the system must cross-reference multi-page legal documents against a set of compliance policies (e.g., GDPR or local labor laws).
My current ... | https://stackoverflow.com/questions/79907967/what-are-the-best-practice-architectural-workflows-for-llm-based-contract-compli | python, artificial-intelligence, langchain, large-language-model, retrieval-augmented-generation | 1,773,592,294 |
se_79980928 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Foundry Local SDK ignores CUDAExecutionProvider, forces CPUExecutionProvider on Windows | Foundry Local SDK ignores CUDAExecutionProvider, forces CPUExecutionProvider on Windows
I am developing a local RAG application using foundry-local-sdk (v1.2.3) on Windows 11 with an NVIDIA RTX 5070 GPU. I am unable to get the SDK to utilize my GPU for inference, as it consistently falls back to CPUExecutionProvider d... | https://stackoverflow.com/questions/79980928/foundry-local-sdk-ignores-cudaexecutionprovider-forces-cpuexecutionprovider-on | python, gpu, large-language-model, onnxruntime | 1,784,107,453 |
se_76873011 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Review Summarization Using Langchain and AzureOpenAI | Review Summarization Using Langchain and AzureOpenAI
Using Langhcain and Azure OpenAI, i would like to summarize the review based on the product's attributes. For example:
products = {'foo4':["cilt","kargo","orjinallik"],
'foo3':["kurulum", "rüzgar geçirgenliği", "taşınabilirlik" , "güneş geçirgenliği"],
... | https://stackoverflow.com/questions/76873011/review-summarization-using-langchain-and-azureopenai | python, langchain, large-language-model | 1,691,647,675 |
se_79976459 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Idea creation using n8n | Idea creation using n8n
I'm building an AI marketing automation workflow in n8n.
The workflow already generates captions, image prompts, and can automatically publish content. The part I'm struggling with is content ideation.
I don't want a workflow that simply reads RSS feeds or summarizes trending articles. That eve... | https://stackoverflow.com/questions/79976459/idea-creation-using-n8n | automation, artificial-intelligence, large-language-model, n8n | 1,783,425,378 |
se_79965397 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to design an offline multimodal RAG pipeline for PDF/DOC/images/audio with local LLM and unified retrieval? | How to design an offline multimodal RAG pipeline for PDF/DOC/images/audio with local LLM and unified retrieval?
I’m building a fully offline multimodal RAG system and I’m looking for architecture suggestions and practical implementation advice from people who have built something similar.
Goal
I want to build a Retrie... | https://stackoverflow.com/questions/79965397/how-to-design-an-offline-multimodal-rag-pipeline-for-pdf-doc-images-audio-with-l | large-language-model, vector-database, rag, semantic-search, multimodal | 1,782,146,924 |
se_79972624 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What infrastructure requirements should I consider when self-hosting a Gemma 4 E2B (Q4) model for a chatbot? | What infrastructure requirements should I consider when self-hosting a Gemma 4 E2B (Q4) model for a chatbot?
My team lead asked me to prepare the infrastructure requirements for hosting a chatbot powered by Gemma 4 E2B (Q4 quantized).
I am familiar with running the model locally using Ollama, so I understand the basic... | https://stackoverflow.com/questions/79972624/what-infrastructure-requirements-should-i-consider-when-self-hosting-a-gemma-4-e | deployment, hosting, large-language-model, ollama, gemma | 1,782,996,196 |
se_79979630 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to use a different AI agent (not GitHub Copilot) in Visual Studio's Agent Mode? | How to use a different AI agent (not GitHub Copilot) in Visual Studio's Agent Mode?
Visual Studio (2022) has an "Agent Mode" feature that lets AI act autonomously on tasks in the editor, but by default it's tied to GitHub Copilot.
I'd like to use a different AI agent/model (e.g., Claude, a custom LLM, or another p... | https://stackoverflow.com/questions/79979630/how-to-use-a-different-ai-agent-not-github-copilot-in-visual-studios-agent-mo | visual-studio, ide, large-language-model, github-copilot | 1,783,681,220 |
se_79911924 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Learning Claude | Learning Claude
I am new to this field, and I’m hoping to learn with your help. That’s why I would like to ask a few questions regarding AI and using Claude for coding.
At the moment, I am trying to build an app with Claude that I would initially use only for myself. I believe that, with the technology currently avail... | https://stackoverflow.com/questions/79911924/learning-claude | security, deployment, artificial-intelligence, large-language-model | 1,774,103,372 |
se_78347436 | stackoverflow | ARTIFICIAL_INTELLIGENCE | LLM computes wrong dates | LLM computes wrong dates
I'm encountering challenges with handling dates while using GPT-4 on Azure OpenAI. Specifically, I'm trying to extract deadlines from large email threads and convert phrases like "by next Tuesday" into actual dates based on the email's sent date.
For example, when I instruct the model to inter... | https://stackoverflow.com/questions/78347436/llm-computes-wrong-dates | date, large-language-model, azure-openai, gpt-4 | 1,713,443,292 |
se_79969015 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Evaluating long-term memory limits in stateless LLM chatbots — feedback needed | Evaluating long-term memory limits in stateless LLM chatbots — feedback needed
I’m working on a research project exploring how stateless LLM-based chatbots handle long conversations and whether important earlier information is still reliably retained over time.
My idea is to:
Run a chatbot using an LLM API without an... | https://stackoverflow.com/questions/79969015/evaluating-long-term-memory-limits-in-stateless-llm-chatbots-feedback-needed | machine-learning, nlp, chatbot, large-language-model | 1,782,665,641 |
se_79968872 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Deploying a self-hosted LLM for 10-20 concurrent users to offload Claude Code, hardware/infra advice needed | Deploying a self-hosted LLM for 10-20 concurrent users to offload Claude Code, hardware/infra advice needed
my org currently uses Claude Code across the team and we’re looking to self-host an open-weight code-focused LLM to offload as much as possible from it. Goal is to serve 10-20 concurrent developers internally wh... | https://stackoverflow.com/questions/79968872/deploying-a-self-hosted-llm-for-10-20-concurrent-users-to-offload-claude-code-h | deployment, gpu, large-language-model, claude-code | 1,782,631,434 |
se_79912950 | stackoverflow | ARTIFICIAL_INTELLIGENCE | PDF generation method | PDF generation method
I am working on a project right now which is to create a synthetic data generation agent. My agent will receive some PDF like a bank statement and bank reconciliation which are related to each other, and then my agent should return a synthetic sample PDF while maintaining cross document and conte... | https://stackoverflow.com/questions/79912950/pdf-generation-method | templates, pdf-generation, large-language-model, agent, claude | 1,774,284,714 |
se_79965038 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Architecting an AI Chat Layer in ASP.NET Core 8 with MCP (Model Context Protocol) | Architecting an AI Chat Layer in ASP.NET Core 8 with MCP (Model Context Protocol)
I am integrating an AI-driven Q&A chat assistant into an existing C# .NET Core 8 CRM application (using PostgreSQL as the primary database).
The goal is to allow users to ask natural language questions about CRM data, which the backend w... | https://stackoverflow.com/questions/79965038/architecting-an-ai-chat-layer-in-asp-net-core-8-with-mcp-model-context-protocol | asp.net-core, asp.net-web-api, artificial-intelligence, large-language-model, model-context-protocol | 1,782,105,590 |
se_77487714 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to perform document retrieval in large database to augment prompt of LLM? | How to perform document retrieval in large database to augment prompt of LLM?
I have a large database of documents (these “documents” are essentially web pages and they are all in HTML). They have information regarding the business itself and can contain a lot of similar information. What I want to do is to create a c... | https://stackoverflow.com/questions/77487714/how-to-perform-document-retrieval-in-large-database-to-augment-prompt-of-llm | embedding, information-retrieval, large-language-model, chunking | 1,700,051,380 |
se_79958873 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Building an LLM tool to validate Palo Alto Panorama firewall rule requests | Building an LLM tool to validate Palo Alto Panorama firewall rule requests
I am building a web application that helps users request new firewall rules. The user fills out a form with:
Source IP
Destination IP
Port
Protocol
Application
Site
Instead of creating the rule directly, I want an LLM to check whether t... | https://stackoverflow.com/questions/79958873/building-an-llm-tool-to-validate-palo-alto-panorama-firewall-rule-requests | firewall, large-language-model | 1,781,458,759 |
se_79962040 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Structured LLM router misclassifies SAP BASIS Trainer job description, generating invalid coding tasks | Structured LLM router misclassifies SAP BASIS Trainer job description, generating invalid coding tasks
What we are trying to achieve
We have a multi-step LLM-driven recruitment pipeline. The Role Router classifies a job description (JD) as either TECHNICAL or NON_TECHNICAL. Next, the Language Router selects a programm... | https://stackoverflow.com/questions/79962040/structured-llm-router-misclassifies-sap-basis-trainer-job-description-generatin | prompt, langchain, large-language-model, langgraph | 1,781,683,501 |
se_79468013 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to run DeepSeek model locally | How to run DeepSeek model locally
I am trying to run DeepSeek locally according to their instructions but it does not work with some silly error (I will show it later).
This is what I am doing.
Download the smallest model (3.5GB) from here https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B
Follow the st... | https://stackoverflow.com/questions/79468013/how-to-run-deepseek-model-locally | python, docker, machine-learning, large-language-model, deepseek | 1,740,521,660 |
se_79850215 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Is there a way in MCP to stream a LLM response chunk by chunk back to the client? | Is there a way in MCP to stream a LLM response chunk by chunk back to the client?
I'm using FastMCP in python to implement a MCP server. Currently I run into a problem when it comes to streaming of the generated tokens from the LLM. I don't want to wait for the completed response and return the whole text, I rather wa... | https://stackoverflow.com/questions/79850215/is-there-a-way-in-mcp-to-stream-a-llm-response-chunk-by-chunk-back-to-the-client | python, large-language-model, rag, model-context-protocol, mcp-server | 1,766,054,451 |
se_79939576 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Trying to improve my OCR-LLM document extraction method. Any recommendations? | Trying to improve my OCR-LLM document extraction method. Any recommendations?
I'm currently working on extracting personal data from personal and institutional documents. I'm looking specifically for full names and ID numbers in a variety of documents. In our team, we already have a CNN model capable of telling me whi... | https://stackoverflow.com/questions/79939576/trying-to-improve-my-ocr-llm-document-extraction-method-any-recommendations | artificial-intelligence, ocr, large-language-model, langgraph | 1,778,529,272 |
se_79952002 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Recommend LLM for low level Rust or c# for storage/memory core of database implementation | Recommend LLM for low level Rust or c# for storage/memory core of database implementation
Developing database system from scratch. Need two types of AI: one for strong logic and math reasoning, and second to code this logic. Trying to use deepseek v4, but its not effective. May be I am doing something wrong with promt... | https://stackoverflow.com/questions/79952002/recommend-llm-for-low-level-rust-or-c-for-storage-memory-core-of-database-imple | performance, artificial-intelligence, large-language-model | 1,780,682,606 |
se_78993623 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Existing chroma Vector DB not getting deleted | Existing chroma Vector DB not getting deleted
I'm creating a project where a user uploads a PDF, which creates a chroma vector db, and the user receives the output. The issue arises when the user uploads a second PDF: the system should delete the existing vector db and create a new one. However, I keep running into a ... | https://stackoverflow.com/questions/78993623/existing-chroma-vector-db-not-getting-deleted | python, langchain, large-language-model, chromadb, rag | 1,726,568,712 |
se_75965605 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to persist LangChain conversation memory (save and load)? | How to persist LangChain conversation memory (save and load)?
I'm creating a conversation like so:
llm = ChatOpenAI(temperature=0, openai_api_key=OPENAI_API_KEY, model_name=OPENAI_DEFAULT_MODEL)
conversation = ConversationChain(llm=llm, memory=ConversationBufferMemory())
But what I really want is to be able to save a... | https://stackoverflow.com/questions/75965605/how-to-persist-langchain-conversation-memory-save-and-load | python, pydantic, langchain, large-language-model | 1,680,961,878 |
se_78668431 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I get my AI chatbot to remember past answers? | How can I get my AI chatbot to remember past answers?
I have a problem that I have been struggling with for a long time. In my small pet project, I am creating a chatbot that could respond using data from the database, as well as tools for currency conversion. The problem is that there is no way I can add to it the ab... | https://stackoverflow.com/questions/78668431/how-can-i-get-my-ai-chatbot-to-remember-past-answers | python, openai-api, streamlit, large-language-model, langchain-agents | 1,719,331,284 |
se_79948787 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What's the best "FreeTier" resource, Generative-ai, text-prompt/image-upload_to_video fullstack llmm application that's pipelined through HuggingFace? | What's the best "FreeTier" resource, Generative-ai, text-prompt/image-upload_to_video fullstack llmm application that's pipelined through HuggingFace?
As an academic in the field of computer science with advanced specialization in artificial intelligence and prompt engineering, I am currently explori... | https://stackoverflow.com/questions/79948787/whats-the-best-freetier-resource-generative-ai-text-prompt-image-upload-to | react-native, computer-vision, artificial-intelligence, large-language-model, google-generativeai | 1,780,121,768 |
se_79948586 | stackoverflow | ARTIFICIAL_INTELLIGENCE | vLLM inference with MTP not improving performances | vLLM inference with MTP not improving performances
I'm using Jan.ai to benchmark some vLLM configurations. Currently, I'm running Qwen 3.6 35B on 2 L40S.
Here's the current config:
vllm serve \
Qwen/Qwen3.6-35B-A3B-FP8 \
--served-model-name "vllm/qwen3.6:35b" \
--host 0.0.0.0 \
--port 11435 \
--tensor-parall... | https://stackoverflow.com/questions/79948586/vllm-inference-with-mtp-not-improving-performances | large-language-model, inference, serving, vllm | 1,780,071,456 |
se_79946304 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Built a Privacy Policy Analyzer with LLMs, but it's slow | Built a Privacy Policy Analyzer with LLMs, but it's slow
I created a tool called Privacy Policy Analyzer, which uses LLMs to evaluate real-world privacy policies. It scores policies from platforms like GitHub, TikTok, and Facebook based on criteria such as data retention, cross-border data transfer, transparency, ... | https://stackoverflow.com/questions/79946304/built-a-privacy-policy-analyzer-with-llms-but-its-slow | python, selenium-webdriver, langchain, large-language-model, privacy-policy | 1,779,714,179 |
se_79946681 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Modern Approaches for Hierarchical Clustering of Call Transcripts After LLMs? | Modern Approaches for Hierarchical Clustering of Call Transcripts After LLMs?
We’re trying to build a hierarchical clustering system for customer support / call-center conversations and I’m looking for guidance on modern approaches post-LLM era.
Input can be:
* Full call transcriptions
* LLM-generated summaries
* One-... | https://stackoverflow.com/questions/79946681/modern-approaches-for-hierarchical-clustering-of-call-transcripts-after-llms | cluster-analysis, large-language-model, hierarchical-clustering | 1,779,787,094 |
se_79946518 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Does inputs_embeds bypass the positional encoding step of the model? | Does inputs_embeds bypass the positional encoding step of the model?
Using the Hugging Face transformer library, I want to feed logits (i.e., a vector such that if the softmax is taken would have the probability of each token) as the input to a model.
Currently, I convert the logits to an embedding with the following ... | https://stackoverflow.com/questions/79946518/does-inputs-embeds-bypass-the-positional-encoding-step-of-the-model | huggingface-transformers, large-language-model | 1,779,750,483 |
se_79931063 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Is this possible? A new AI-age language, as easy as Python, as fast as C++, more secure than Rust | Is this possible? A new AI-age language, as easy as Python, as fast as C++, more secure than Rust
With the AI being so powerful, we should have a better programming language. This language is named cpluz/cz, signifying that it is generally between C and C++, but with some differences. Because its philosophy is fundame... | https://stackoverflow.com/questions/79931063/is-this-possible-a-new-ai-age-language-as-easy-as-python-as-fast-as-c-more | large-language-model | 1,777,000,577 |
se_79944117 | stackoverflow | ARTIFICIAL_INTELLIGENCE | SFT fine tuning on a dataset with only one column using Unsloth | SFT fine tuning on a dataset with only one column using Unsloth
I would like to fine tune a llm using unsloth SFTTrainer, on a concatenation of the synthCypher and Ultrachat dataset (openbmb/UltraChat and ServiceNow-AI/SynthCypher on HF), to a recreate a similar setup as in this paper : Auto-Cypher: Improving LLMs on ... | https://stackoverflow.com/questions/79944117/sft-fine-tuning-on-a-dataset-with-only-one-column-using-unsloth | large-language-model, fine-tuning | 1,779,287,426 |
se_79942661 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Best local LLM for reasoning over noisy Russian call center transcripts? | Best local LLM for reasoning over noisy Russian call center transcripts?
I am building a local speech analytics / call quality monitoring system for Russian phone conversations.
Current pipeline:
Whisper large-v3 for speech-to-text
Speaker diarization
LLM-based checklist evaluation
Local inference only (no cloud A... | https://stackoverflow.com/questions/79942661/best-local-llm-for-reasoning-over-noisy-russian-call-center-transcripts | speech-recognition, large-language-model | 1,779,049,085 |
se_79911354 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Using LLM models downloaded from huggingface with langgraph | Using LLM models downloaded from huggingface with langgraph
I downloaded the weights of a llama model from huggingface. It works for simple tasks, but I don't know how to use it with langgraph to create agents or how to bind tools.
Here is how I downloaded it:
model_id = "meta-llama/Llama-3.2-3B-Instruct"
pipeline = t... | https://stackoverflow.com/questions/79911354/using-llm-models-downloaded-from-huggingface-with-langgraph | machine-learning, nlp, large-language-model, ollama, langgraph | 1,774,012,424 |
se_79930771 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AI ML roadmap for a beginner aiming for a remote job | AI ML roadmap for a beginner aiming for a remote job
I am just starting out as a cs student. I wanna get into ML domain where I can apply for remote jobs from the country I am living in. How can I get started?, Where can I learn the required technologies? and What can I expect from them? | https://stackoverflow.com/questions/79930771/ai-ml-roadmap-for-a-beginner-aiming-for-a-remote-job | python, machine-learning, artificial-intelligence, computer-science, large-language-model | 1,776,953,756 |
se_79201360 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Does unsloth support cache directory for models? | Does unsloth support cache directory for models?
I want to download a model from hugging face to be used with unsloth for trainig:
from unsloth import FastLanguageModel,
max_seq_length = 16384
model, tokenizer = FastLanguageModel.from_pretrained(
model_name="unsloth/Llama-3.2-1B-Instruct",
max_seq_length=max_... | https://stackoverflow.com/questions/79201360/does-unsloth-support-cache-directory-for-models | python, large-language-model, huggingface | 1,731,962,016 |
se_79936890 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Best fine-tuning method | Best fine-tuning method
I need a few suggestions for fine-tuning LLMs. I’m currently building on a dataset and want to fine-tune my model effectively, improving performance, handling edge cases, and ensuring better generalization across tasks and domains. | https://stackoverflow.com/questions/79936890/best-fine-tuning-method | large-language-model, fine-tuning | 1,778,060,445 |
se_79394817 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to efficiently make concurrent calls to a local Llama 3.1 model using the ollama-python package? | How to efficiently make concurrent calls to a local Llama 3.1 model using the ollama-python package?
I'm using a local Llama 3.1:7b model. I am interacting with the model using Python and the ollama-python package.
I need to make over 20,000 calls to the model, but I'm currently invoking it sequentially, which is inef... | https://stackoverflow.com/questions/79394817/how-to-efficiently-make-concurrent-calls-to-a-local-llama-3-1-model-using-the-ol | python, machine-learning, concurrency, large-language-model, ollama | 1,738,087,928 |
se_79918935 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to get started with building a simple LLM-based models using Python? | How to get started with building a simple LLM-based models using Python?
How to start learning llms ,any video suggestion or guidline for a beginner. I’m a beginner in machine learning with basic Python knowledge.
I want to start learning about LLMs creations.
So far I have:
Learned basic Python
Read about transformer... | https://stackoverflow.com/questions/79918935/how-to-get-started-with-building-a-simple-llm-based-models-using-python | artificial-intelligence, openai-api, large-language-model, ml | 1,775,123,284 |
se_79660840 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Best ways to feed the Ollama LLM with a high data load | Best ways to feed the Ollama LLM with a high data load
I am developing a chatbot for my university that will use a wiki with curriculum information for courses and other relevant data. One of the challenges is optimizing the use of Ollama to process the wiki content as context for user responses.
The issue is that the... | https://stackoverflow.com/questions/79660840/best-ways-to-feed-the-ollama-llm-with-a-high-data-load | go, web-scraping, large-language-model, ollama | 1,749,573,703 |
se_79936199 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Huggingface. Passing data to multimodal chat bot without having to save to files | Huggingface. Passing data to multimodal chat bot without having to save to files
Typically in order to pass non-textual data (audio, image, video) to a model you would need to save the data to a file and then specify the path (or url) to the file.
messages = [
{
"role": "user",
"content": [
... | https://stackoverflow.com/questions/79936199/huggingface-passing-data-to-multimodal-chat-bot-without-having-to-save-to-files | python, chatbot, huggingface-transformers, large-language-model | 1,777,955,762 |
se_79930910 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Content Filter Bypassing for Genuine Content | Content Filter Bypassing for Genuine Content
I am processing customer feedback through Azure OpenAI, but it triggers content filtering of various types, like sexual or racial bias. I still want to process the content (maybe rewording it to use a neutral tone rather than stronger language) without switching off content... | https://stackoverflow.com/questions/79930910/content-filter-bypassing-for-genuine-content | large-language-model, azure-openai | 1,776,969,944 |
se_79934236 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Suggentions on open-model to implement LLM text watermarking | Suggentions on open-model to implement LLM text watermarking
As a part of my research problem, I want to fully access a model to implement LLM text watermarking (I need open-weight model to modify hidden states). After researching a bit, I found Qwen2.5-0.5B model that satisfies my requirements. I would like to know:
... | https://stackoverflow.com/questions/79934236/suggentions-on-open-model-to-implement-llm-text-watermarking | machine-learning, artificial-intelligence, large-language-model, semantics, watermark | 1,777,553,816 |
se_79933687 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Extract game names and translate them to english from google sheet | Extract game names and translate them to english from google sheet
Here's example of my dataset
I am working on a dataset (Excel / Google Sheets) where each row contains free-text answers about video games.
The problem is that the data is very noisy:
Some rows contain multiple games separated by different symbols (-,... | https://stackoverflow.com/questions/79933687/extract-game-names-and-translate-them-to-english-from-google-sheet | python, google-sheets, artificial-intelligence, large-language-model, spacy-transformers | 1,777,471,394 |
se_79931698 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Preparing context and rules files for parent, and context and rules files for children of a multi-repositories & multi-programming languages project | Preparing context and rules files for parent, and context and rules files for children of a multi-repositories & multi-programming languages project
Context
I'm creating a multi-repository and multi-programming language project.
Named beaufort in my Gitlab, it has sub modules projects (having wind names). Each one... | https://stackoverflow.com/questions/79931698/preparing-context-and-rules-files-for-parent-and-context-and-rules-files-for-ch | git, gitlab, large-language-model | 1,777,111,926 |
se_79928881 | stackoverflow | ARTIFICIAL_INTELLIGENCE | In DSPy, how do I efficiently provide background information? | In DSPy, how do I efficiently provide background information?
I intend to process a lot of straightforward question->answer cases with DSPy (specifically, I expect to use ReAct but I can use additional modules if needed). However, I have a chunk of background information that's necessary to parse the questions. If I d... | https://stackoverflow.com/questions/79928881/in-dspy-how-do-i-efficiently-provide-background-information | large-language-model, dspy | 1,776,696,405 |
se_79926749 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Connecting to Databricks API (hosted LLM in model-serving) via PAT | Connecting to Databricks API (hosted LLM in model-serving) via PAT
I'm running code in my local IDE that connects to Databricks's API to pas text into an LLM that is hosted on Databricks. I'm using Personal Access Tokens to get up and running quickly. I'm able to get it working when I add "all scopes" to the PAT, but ... | https://stackoverflow.com/questions/79926749/connecting-to-databricks-api-hosted-llm-in-model-serving-via-pat | python, databricks, azure-databricks, large-language-model | 1,776,352,513 |
se_79923862 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Programmer owns the architecture, AI implements crate-level modules in Rust — how does this compare to other languages? | Programmer owns the architecture, AI implements crate-level modules in Rust — how does this compare to other languages?
After working on several Rust projects with AI assistance, I want to share a division of responsibility that has worked well in practice, and ask whether others have found the same — or a better appr... | https://stackoverflow.com/questions/79923862/programmer-owns-the-architecture-ai-implements-crate-level-modules-in-rust-ho | python, go, rust, artificial-intelligence, large-language-model | 1,775,875,995 |
se_78881336 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Best Approach to Evaluate a Graph RAG Pipeline Using Metrics? | Best Approach to Evaluate a Graph RAG Pipeline Using Metrics?
I’ve developed a Graph RAG (Retrieval-Augmented Generation) pipeline that performs reasoning over a knowledge graph. Given a user query, the pipeline retrieves relevant nodes and relationships in the form of graph triples like:
node1 - [relationship] -> nod... | https://stackoverflow.com/questions/78881336/best-approach-to-evaluate-a-graph-rag-pipeline-using-metrics | python, graph, large-language-model, retrieval-augmented-generation | 1,723,866,287 |
se_79922304 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Standard for Embedding Components Within LLM Response Markdown? | Standard for Embedding Components Within LLM Response Markdown?
Is there a standard or recommended way to indicate within an LLM markdown response that specific sections should be rendered as application components (graphs, tables, etc) rather than as plain markdown?
For example, an assistant response could include a ... | https://stackoverflow.com/questions/79922304/standard-for-embedding-components-within-llm-response-markdown | markdown, chatbot, large-language-model | 1,775,661,681 |
se_79920345 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Does ordering for different roles like system, user, assistant... matter when calling chat completion api? Can I have system prompts in between? | Does ordering for different roles like system, user, assistant... matter when calling chat completion api? Can I have system prompts in between?
Does ordering for different roles like system, user, assistant... matter when calling chat completion api?
Traditionally:
await openai.chat.completions.create({
model: pe... | https://stackoverflow.com/questions/79920345/does-ordering-for-different-roles-like-system-user-assistant-matter-when-ca | chatbot, openai-api, large-language-model | 1,775,362,949 |
se_79919764 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Fetch Leadership team with designation from websites | Fetch Leadership team with designation from websites
I am seeking some advice on how best I can achieve - Fetching Leadership Team names and designation from a company's official website. This I want to do using python code. I will be using this information for validation purpose and not storing or reproducing this in... | https://stackoverflow.com/questions/79919764/fetch-leadership-team-with-designation-from-websites | web-scraping, web-crawler, large-language-model | 1,775,234,639 |
se_79911644 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I'm having trouble accessing a llama.cpp server instance with the Continue extension for VSCodium | I'm having trouble accessing a llama.cpp server instance with the Continue extension for VSCodium
I'm running GLM-4.7-Flash-GGUF:Q6_K_XL from the powershell terminal like this .\llama-server.exe -hf unsloth/GLM-4.7-Flash-GGUF:Q6_K_XL --host 127.0.0.1 --port 10000 --ctx-size 32000 --n-gpu-layers 99, how do I access... | https://stackoverflow.com/questions/79911644/im-having-trouble-accessing-a-llama-cpp-server-instance-with-the-continue-exten | vscode-extensions, large-language-model, agent, vscodium, llamacpp | 1,774,043,621 |
se_79890443 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AI use in coding | AI use in coding
This has probably been talked about to death on this site but I still wanted to hear thoughts from other devs regarding best practices in using LLMs as guiding tools in coding
I specifically avoid asking ChatGPT (LLM I use most frequently) for most coding stuff as I often find that it's unreliable eve... | https://stackoverflow.com/questions/79890443/ai-use-in-coding | artificial-intelligence, large-language-model | 1,771,272,583 |
se_79917285 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why does my on-prem OCR + RAG pipeline design lead to poor retrieval performance? | Why does my on-prem OCR + RAG pipeline design lead to poor retrieval performance?
I am building an on-prem document processing system using:
- OCR for scanned PDFs
- Embeddings for indexing
- RAG for retrieval and question answering
However, I’m seeing issues with retrieval quality and latency when combining OCR outpu... | https://stackoverflow.com/questions/79917285/why-does-my-on-prem-ocr-rag-pipeline-design-lead-to-poor-retrieval-performance | python, nlp, large-language-model | 1,774,893,086 |
se_79827129 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I integrate the Computer Use API to enable AI-powered navigation and actions within my own application? | How can I integrate the Computer Use API to enable AI-powered navigation and actions within my own application?
I'm building a voice-assisted navigation feature for my app that would allow users to:
Navigate between screens/pages using voice commands
Have an AI agent take actions on the current page (clicking button... | https://stackoverflow.com/questions/79827129/how-can-i-integrate-the-computer-use-api-to-enable-ai-powered-navigation-and-act | large-language-model, google-gemini, claude | 1,763,790,181 |
se_79913234 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Improving precision in LLM-based binary classification by detecting ambiguous cases | Improving precision in LLM-based binary classification by detecting ambiguous cases
I’m working on a prompt-based binary classification task using an LLM, where the main goal is to maximize precision.
Instead of assigning a label to every input, I want the system to:
• Assign a label only when confident
• Flag amb... | https://stackoverflow.com/questions/79913234/improving-precision-in-llm-based-binary-classification-by-detecting-ambiguous-ca | machine-learning, nlp, classification, large-language-model, text-classification | 1,774,330,277 |
se_79906682 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Recommended GenerationConfig for Medical Domain LLMs: Strategies to Minimize Hallucination and Ensure Factuality | Recommended GenerationConfig for Medical Domain LLMs: Strategies to Minimize Hallucination and Ensure Factuality
I am currently deploying a Large Language Model (e.g., Llama 3 / Mistral) for a medical application, specifically for tasks such as clinical note summarization and extracting information from oncology repor... | https://stackoverflow.com/questions/79906682/recommended-generationconfig-for-medical-domain-llms-strategies-to-minimize-hal | python, large-language-model | 1,773,382,388 |
se_79911582 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to perform asynchronous LLM inference on Kafka streams using Apache Spark, and handle high-throughput RAG ingestion? | How to perform asynchronous LLM inference on Kafka streams using Apache Spark, and handle high-throughput RAG ingestion?
I’m working on a streaming pipeline where data is coming from a Kafka topic, and I want to integrate LLM-based processing and RAG ingestion. I’m running into architectural challenges around latency ... | https://stackoverflow.com/questions/79911582/how-to-perform-asynchronous-llm-inference-on-kafka-streams-using-apache-spark-a | apache-spark, asynchronous, kafka-consumer-api, large-language-model, rag | 1,774,035,678 |
se_79584986 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Langgraph: Getting ValueError: Found edge ending at unknown node `<function chatbot at 0x..>` while compiling | Langgraph: Getting ValueError: Found edge ending at unknown node `<function chatbot at 0x..>` while compiling
As part of experimenting Langgraph, I am trying to create a prompt as tool node which would able to serarch for recommended product based on user query, taking a chat_history as a reference.
I created th... | https://stackoverflow.com/questions/79584986/langgraph-getting-valueerror-found-edge-ending-at-unknown-node-function-chat | python, langchain, large-language-model, langgraph, langsmith | 1,745,253,745 |
se_79907711 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can Flutter call a local LLM model on device? | How can Flutter call a local LLM model on device?
I am building a Flutter app and want to run a local LLM model directly on the mobile device without using a cloud API.
My current idea is:
Flutter handles the UI
Native code runs the model
The result is sent back to Flutter
My questions are:
What is the common wa... | https://stackoverflow.com/questions/79907711/how-can-flutter-call-a-local-llm-model-on-device | flutter, large-language-model | 1,773,541,234 |
se_79833481 | stackoverflow | ARTIFICIAL_INTELLIGENCE | RAG with Pinecone + GPT-5 for generating new math problems: incoherent outputs, mixed chunks, and lack of originality | RAG with Pinecone + GPT-5 for generating new math problems: incoherent outputs, mixed chunks, and lack of originality
I’m building a tool that generates new mathematics exam problems using an internal database of past problems.
My current setup uses a RAG pipeline, Pinecone as the vector database, and GPT-5 as the LLM... | https://stackoverflow.com/questions/79833481/rag-with-pinecone-gpt-5-for-generating-new-math-problems-incoherent-outputs | openai-api, large-language-model, vector-database, rag, pinecone | 1,764,444,121 |
se_79838505 | stackoverflow | ARTIFICIAL_INTELLIGENCE | llama_index Ollama misloading model issue | llama_index Ollama misloading model issue
I'm working with LlamaIndex and trying to run LLM in local using Ollama. I pulled phi3:mini model successfully and tested it in terminal. but if I load it with llama_index.llms.ollama, it keeps following erros "ollama._types.ResponseError: model requires more system memory (4... | https://stackoverflow.com/questions/79838505/llama-index-ollama-misloading-model-issue | python, artificial-intelligence, large-language-model, llama-index, ollama | 1,764,901,603 |
se_79904274 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can an AI assistant interact with Aspen plus through Python? | How can an AI assistant interact with Aspen plus through Python?
I am experimenting with a Python-based MCP server to connect AI assistant with Aspen Plus.
The idea is that the AI assistant can interpret user instructions and trigger simulation-related tasks through Claude code.
For example, the AI could help:
Analy... | https://stackoverflow.com/questions/79904274/how-can-an-ai-assistant-interact-with-aspen-plus-through-python | python, large-language-model | 1,773,114,452 |
se_78947142 | stackoverflow | ARTIFICIAL_INTELLIGENCE | how to change favicon in Gradio python | how to change favicon in Gradio python
I have a very basic code for Gradio chat interface, how can i change favicon in Gradio chat interface
import time
import gradio as gr
def slow_echo(message, history):
for i in range(len(message)):
time.sleep(0.3)
yield "You typed: " + message[: i+1]
gr.ChatInterfa... | https://stackoverflow.com/questions/78947142/how-to-change-favicon-in-gradio-python | python, chatbot, large-language-model, gradio | 1,725,431,625 |
se_79773153 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Running Ollama on local computer and prompting from jupyter notebook - does the model recall prior prompts like if it was the same chat? | Running Ollama on local computer and prompting from jupyter notebook - does the model recall prior prompts like if it was the same chat?
I am doing some tests using Ollama on local computer, with Llama 3.2, which consists in prompting a task against a document.
I read that after having reached maximum context, I shoul... | https://stackoverflow.com/questions/79773153/running-ollama-on-local-computer-and-prompting-from-jupyter-notebook-does-the | python, large-language-model, llama, ollama, llama3 | 1,758,670,557 |
se_79899804 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Jupyter kernel crashes when loading local HuggingFace .safetensors model with AutoModelForCausalLM | Jupyter kernel crashes when loading local HuggingFace .safetensors model with AutoModelForCausalLM
I am attempting to load a large local Hugging Face model (./ltx-2-19b-dev.safetensors, .safetensors format) inside JupyterLab using transformers, but the kernel crashes immediately during from_pretrained() without any Py... | https://stackoverflow.com/questions/79899804/jupyter-kernel-crashes-when-loading-local-huggingface-safetensors-model-with-au | python, jupyter-notebook, huggingface-transformers, large-language-model, safe-tensors | 1,772,500,617 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.