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_79665875
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to access an uploaded video/article from google adk web using adk tool
How to access an uploaded video/article from google adk web using adk tool I'm developing an application using ADK Web (specifically with InMemoryService for artifact and session management) and am encountering difficulties accessing video files uploaded by the user. My goal is to retrieve and process these uplo...
https://stackoverflow.com/questions/79665875/how-to-access-an-uploaded-video-article-from-google-adk-web-using-adk-tool
python, artificial-intelligence, google-cloud-vertex-ai, google-gemini, google-agent-development-kit
1,749,907,495
se_77635217
stackoverflow
ARTIFICIAL_INTELLIGENCE
gpt4all chat service session manager
gpt4all chat service session manager below is the Python code for using the GPT4All chat_session context manager to maintain chat conversations with the model. model = GPT4All(model_name='orca-mini-3b-gguf2-q4_0.gguf') with model.chat_session(): response1 = model.generate(prompt='hello', temp=0) re...
https://stackoverflow.com/questions/77635217/gpt4all-chat-service-session-manager
python, artificial-intelligence, chat, gpt4all
1,702,219,537
se_42965537
stackoverflow
ARTIFICIAL_INTELLIGENCE
How many individuals to select from population? (Genetic Algorithm)
How many individuals to select from population? (Genetic Algorithm) I've started to implement my own genetic algorithm and I'm at the stage of deciding how to select the parents for the new generation. I've done some reading and it seems there's a number of different ways to go about it. I'm aware of the various sel...
https://stackoverflow.com/questions/42965537/how-many-individuals-to-select-from-population-genetic-algorithm
algorithm, artificial-intelligence, genetic-algorithm
1,490,231,906
se_79776520
stackoverflow
ARTIFICIAL_INTELLIGENCE
Langchain-based model memory
Langchain-based model memory I am referring to the official documentation of langchain to learn how to build a simple agent. But the model don't have memory even though I have used MemeorySaver the link of official document is https://python.langchain.com/docs/tutorials/agents/ the code is here. import os from langcha...
https://stackoverflow.com/questions/79776520/langchain-based-model-memory
python, artificial-intelligence, langchain, langgraph, langchain-agents
1,758,946,181
se_1741347
stackoverflow
ARTIFICIAL_INTELLIGENCE
Natural language rendering
Natural language rendering Do you know any frameworks that implement natural language rendering concept ? I've found several NLP oriented frameworks like Anthelope or Open NLP but they have only parsers but not renderers or builders. For example I want to render a question about smth. I'm constructing sentence object,...
https://stackoverflow.com/questions/1741347/natural-language-rendering
frameworks, artificial-intelligence, nlp
1,258,367,885
se_45586245
stackoverflow
ARTIFICIAL_INTELLIGENCE
Parsing Natural Language
Parsing Natural Language What's the most efficient way to parse natural language? Let "strings" be a map<string, void (*func)(int,char**)> containing strings such as: Set the alarm for *. Call *. Get me an * at * for *. and their corresponding functions. Now suppose "input" is a string containing a sentence like:...
https://stackoverflow.com/questions/45586245/parsing-natural-language
c++, string, artificial-intelligence
1,502,269,660
se_21518534
stackoverflow
ARTIFICIAL_INTELLIGENCE
natural language query processing
natural language query processing I have a NLP (natural language processing application) running that gives me a tree of the parsed sentence, the questions is then how should I proceed with that. What is the time \-SBAR - Suborginate clause |-WHNP - Wh-noun phrase | \-WP - Wh-pronoun | \-What \-S - Simple dec...
https://stackoverflow.com/questions/21518534/natural-language-query-processing
c#, nlp, artificial-intelligence
1,391,391,142
se_79767987
stackoverflow
ARTIFICIAL_INTELLIGENCE
File not reaching backend on Streamlit - stuck on uploading on backend (localhost)
File not reaching backend on Streamlit - stuck on uploading on backend (localhost) I've been trying to upload a file to streamlit and it is getting stuck on the uploading part. It was working perfectly before, the LLM was connected and I was getting correct responses. Then I added Chroma DB and chunking, splitting, si...
https://stackoverflow.com/questions/79767987/file-not-reaching-backend-on-streamlit-stuck-on-uploading-on-backend-localhos
file-upload, artificial-intelligence, backend, streamlit, chromadb
1,758,170,669
se_34612772
stackoverflow
ARTIFICIAL_INTELLIGENCE
Train and Test of a Boltzmann Machine
Train and Test of a Boltzmann Machine I managed to train a Boltzmann machine with 120 visible units (size of pattern) and 60 hidden units (fully - connected) using bipolar pattern vectors. Reading Hinton notes I managed to follow the steps for training such a network in MATLAB. In the positive phase I clamped each pat...
https://stackoverflow.com/questions/34612772/train-and-test-of-a-boltzmann-machine
algorithm, matlab, neural-network, artificial-intelligence
1,452,000,164
se_79764954
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to solve GRAPH_RECURSION_LIMIT error in langgraph and streamlit?
How to solve GRAPH_RECURSION_LIMIT error in langgraph and streamlit? I am new to langgraph and streamlit. I am working on a graph which will takes interview of condidate. Logic is it will ask user information one by one in self loop.Get all data. Then generate user interview question and ask. My interview_app.py: st.s...
https://stackoverflow.com/questions/79764954/how-to-solve-graph-recursion-limit-error-in-langgraph-and-streamlit
python, artificial-intelligence, streamlit, langchain, langgraph
1,757,928,444
se_79404307
stackoverflow
ARTIFICIAL_INTELLIGENCE
What can cause this error in LMStudio : &#39;&#39;&#39;Failed to send message vk::Queue::submit: ErrorDeviceLost&#39;&#39;&#39;
What can cause this error in LMStudio : &#39;&#39;&#39;Failed to send message vk::Queue::submit: ErrorDeviceLost&#39;&#39;&#39; I will have that error in the following scenarios: once i ask a second question to a model without realoading it once i create a new chat with any downloaded without realoading the model onc...
https://stackoverflow.com/questions/79404307/what-can-cause-this-error-in-lmstudio-failed-to-send-message-vkqueuesub
artificial-intelligence, linux-mint, llama, lm-studio
1,738,374,996
se_77286421
stackoverflow
ARTIFICIAL_INTELLIGENCE
Unable to record elements in Testsigma
Unable to record elements in Testsigma I have been unable to record element in Testsigma. I have already installed chrome extension for it. Once recording started I clicked on different elements but it did not save the respective locator. enter image description here I have download zip from the github link and downlo...
https://stackoverflow.com/questions/77286421/unable-to-record-elements-in-testsigma
testing, automation, automated-tests, artificial-intelligence
1,697,187,650
se_79073591
stackoverflow
ARTIFICIAL_INTELLIGENCE
azure ai studio - indexing problem (ai search)
azure ai studio - indexing problem (ai search) Through the web interface of ai.azure.com I created all the necessary services such as azure ai studio with project, storage account, open AI, AI search, etc. And I connected all the services to a private endpoint. The problem arose only when indexing files in Ai search ...
https://stackoverflow.com/questions/79073591/azure-ai-studio-indexing-problem-ai-search
azure, indexing, artificial-intelligence, azure-ai, azure-ai-search
1,728,551,283
se_77351982
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why is this code returning an error about the shape of neural network?
Why is this code returning an error about the shape of neural network? When I tried running this code:- import pandas as pd import tensorflow as tf from sklearn.model_selection import train_test_split dataset = pd.read_csv ("/content/dataset/cancer.csv") x = dataset.drop(columns = ["diagnosis(1=m, 0=b)"]) y = dataset[...
https://stackoverflow.com/questions/77351982/why-is-this-code-returning-an-error-about-the-shape-of-neural-network
python, tensorflow, neural-network, artificial-intelligence
1,698,149,878
se_79758366
stackoverflow
ARTIFICIAL_INTELLIGENCE
Zep Graphiti - core - Adding Episode fails the LLM structured output
Zep Graphiti - core - Adding Episode fails the LLM structured output On the ingestion part to the graph db, I pass a json file, as an episode, custom entities (and edges), using gemini api, but I get some discrepancy on the structured output, like so: LLM generation failed parsing as JSON, will try to salvage." Input ...
https://stackoverflow.com/questions/79758366/zep-graphiti-core-adding-episode-fails-the-llm-structured-output
neo4j, artificial-intelligence, large-language-model, google-gemini, rag
1,757,279,506
se_79751192
stackoverflow
ARTIFICIAL_INTELLIGENCE
The parallel mapReduce task implemented by langGraph has an incorrect execution order
The parallel mapReduce task implemented by langGraph has an incorrect execution order Background The node relationships in the graph are as follows: enter image description here Parallel operation of nodes b and c No blocking in nodes b and b2 Node C has sleep Question: Why should b2 be executed after C? Why can't ...
https://stackoverflow.com/questions/79751192/the-parallel-mapreduce-task-implemented-by-langgraph-has-an-incorrect-execution
python, artificial-intelligence, langchain, agent, langgraph
1,756,562,335
se_79756853
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why is my plot of the cost function like this and not like a bowl?
Why is my plot of the cost function like this and not like a bowl? My code: def calc_cost_function(w, b, data): m = len(data) cost = 0 for i in range(m): x = data.iloc[i].X y = data.iloc[i].Y cost += ((x * w + b) - y)**2 return cost / (2 * m) def gradient_descent(w_current, b_...
https://stackoverflow.com/questions/79756853/why-is-my-plot-of-the-cost-function-like-this-and-not-like-a-bowl
machine-learning, math, plot, artificial-intelligence, linear-regression
1,757,080,130
se_79756054
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to send extra headers from RAGFlow Agent to a Spring Boot MCP server tool call?
How to send extra headers from RAGFlow Agent to a Spring Boot MCP server tool call? I am using RAGFlow connected to a Spring Boot MCP server. My agent flow is simple: Begin node → collects inputs (auth_token, tenant_id, x_request_status) Agent (gpt-4o) → connected to MCP Tool (server) → exposes Spring methods annotate...
https://stackoverflow.com/questions/79756054/how-to-send-extra-headers-from-ragflow-agent-to-a-spring-boot-mcp-server-tool-ca
spring, artificial-intelligence, large-language-model, rag, model-context-protocol
1,757,007,909
se_79754403
stackoverflow
ARTIFICIAL_INTELLIGENCE
context loss in a multi-turn conversation at function calling
context loss in a multi-turn conversation at function calling I am using deepseek function calling. There is a function create_sketch which require 2 parameters plane and name. Here is the conversation: user: create a sektch assistant: I need to know which plane you want to sketch on and what you'd like to name the s...
https://stackoverflow.com/questions/79754403/context-loss-in-a-multi-turn-conversation-at-function-calling
artificial-intelligence, deepseek
1,756,892,154
se_79753887
stackoverflow
ARTIFICIAL_INTELLIGENCE
Plivo AI Agent not calling human agent after transferCall redirect
Plivo AI Agent not calling human agent after transferCall redirect I have an inbound call flow where: Incoming call → handled by /incoming, which connects the call to Ultravox AI through a . AI Agent conversation → if the caller asks for a human, the AI triggers /transferCall/:fromNumber. Transfer call → /transferC...
https://stackoverflow.com/questions/79753887/plivo-ai-agent-not-calling-human-agent-after-transfercall-redirect
javascript, node.js, artificial-intelligence, agent, plivo
1,756,841,969
se_79750455
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to upsert documents to Flowise document store using API Loader instead of file upload?
How to upsert documents to Flowise document store using API Loader instead of file upload? ’m currently working with Flowise and trying to update my document store via API requests. I followed the documentation here. Specifically, I want to try Scenario 2: In the same document store, replace an existing document loade...
https://stackoverflow.com/questions/79750455/how-to-upsert-documents-to-flowise-document-store-using-api-loader-instead-of-fi
artificial-intelligence, large-language-model
1,756,479,259
se_79743468
stackoverflow
ARTIFICIAL_INTELLIGENCE
Firecrawl self-hosted crawler throws Connection violated security rules error
Firecrawl self-hosted crawler throws Connection violated security rules error I set up a self-hosted Firecrawl instance and I want to crawl my internal intranet site (e.g. https://intranet.xxx.gov.tr/). I can access the site directly both from the host machine and from inside the container using curl: # host curl -v h...
https://stackoverflow.com/questions/79743468/firecrawl-self-hosted-crawler-throws-connection-violated-security-rules-error
web-scraping, web-crawler, artificial-intelligence, rag, firecrawl
1,755,870,469
se_79745013
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to use DI with Semantic Kernel plugins?
How to use DI with Semantic Kernel plugins? I'm trying out Microsoft's Semantic Kernel for chat completion in a Blazor app. I added a service that uses EF Core: public interface ISearchService { Task<string?> GetCustomerAsync(string surname); } This is the interface. The implementation is straightforward. I then ...
https://stackoverflow.com/questions/79745013/how-to-use-di-with-semantic-kernel-plugins
c#, asp.net-core, artificial-intelligence, blazor-server-side, semantic-kernel
1,756,052,366
se_79743671
stackoverflow
ARTIFICIAL_INTELLIGENCE
Python TensorFlow Speech Recognition -1073741819 (0xC0000005) Error
Python TensorFlow Speech Recognition -1073741819 (0xC0000005) Error I'm working on a speech recognition project using TensorFlow in Python. Normally, TensorFlow can only be used with a CPU or an NVIDIA GPU. I have an AMD Radeon 7600S GPU. Because of this, I installed the tensorflow-directml-plugin developed by Microso...
https://stackoverflow.com/questions/79743671/python-tensorflow-speech-recognition-1073741819-0xc0000005-error
python, python-3.x, tensorflow, artificial-intelligence, speech-recognition
1,755,882,240
se_79742385
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to implement non-blocking async checks between turns in Pipecat Flows (0.0.18)?
How to implement non-blocking async checks between turns in Pipecat Flows (0.0.18)? I’m working with the latest version of Pipecat and Pipecat Flows (0.0.18), and I’m trying to implement a pattern where the bot can continue interacting with the user while an async background task runs, without blocking the conversatio...
https://stackoverflow.com/questions/79742385/how-to-implement-non-blocking-async-checks-between-turns-in-pipecat-flows-0-0-1
python, artificial-intelligence, python-asyncio, voice
1,755,783,541
se_79677814
stackoverflow
ARTIFICIAL_INTELLIGENCE
Invalid JSON error using n8n to create a leadscraper
Invalid JSON error using n8n to create a leadscraper I have attached my two JSON files for the main workflow and subworkflow. My error is happening in the JSON node in the subworkflow. It gives the error message: The 'JSON Output' in item 0 contains invalid JSON. I am not sure where to go from here. I am trying to m...
https://stackoverflow.com/questions/79677814/invalid-json-error-using-n8n-to-create-a-leadscraper
artificial-intelligence, openai-api, apify, n8n
1,750,777,888
se_79734991
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to save full Codex CLI `exec` session output as JSON?
How to save full Codex CLI `exec` session output as JSON? I’m running OpenAI’s Codex CLI locally and using it in non-interactive mode, e.g.: codex exec --full-auto "update CHANGELOG for next release" I know Codex stores per-session logs as JSONL files under: ~/.codex/sessions/YYYY/MM/DD/rollout-*.jsonl I can take a ...
https://stackoverflow.com/questions/79734991/how-to-save-full-codex-cli-exec-session-output-as-json
logging, artificial-intelligence, openai-codex
1,755,150,725
se_79218976
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to use kmeans in python with Pearson correlation as distance measure, similar to MATLAB?
How to use kmeans in python with Pearson correlation as distance measure, similar to MATLAB? In MATLAB there is kmeans function with parameter as 'correlation' and 'distance'. I want similar functionality in python. How do I do that? Are there any in-built functions which does this? Or are there any custom built solut...
https://stackoverflow.com/questions/79218976/how-to-use-kmeans-in-python-with-pearson-correlation-as-distance-measure-simila
python, matlab, machine-learning, artificial-intelligence
1,732,401,440
se_79715567
stackoverflow
ARTIFICIAL_INTELLIGENCE
`torch.load` is unable to load model weights or variables
`torch.load` is unable to load model weights or variables I have the model file doclayout_yolo.pt in same folder as code weights-script.py. Also, I installed the required packages via the following commands: python -m pip install doclayout-yolo python -m pip install huggingface_hub Code looks like this: import tor...
https://stackoverflow.com/questions/79715567/torch-load-is-unable-to-load-model-weights-or-variables
python, pytorch, artificial-intelligence, pickle, yolo
1,753,522,692
se_79737395
stackoverflow
ARTIFICIAL_INTELLIGENCE
Correct input for OpenAI embeddings API?
Correct input for OpenAI embeddings API? I'm using the OpenAi text-embedding-3-small model to create embeddings for each product category in a file. In total it's about 6000 product categories and they look like this: Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Off-Road & All-Terrain V...
https://stackoverflow.com/questions/79737395/correct-input-for-openai-embeddings-api
python, artificial-intelligence, openai-api, azure-openai, openaiembeddings
1,755,368,212
se_79737342
stackoverflow
ARTIFICIAL_INTELLIGENCE
What is the relationship between Intel Extension for PyTorch and PyTorch XPU versions?
What is the relationship between Intel Extension for PyTorch and PyTorch XPU versions? A while ago, I was training a deep learning model on a computer without an NVIDIA GPU but with an Intel GPU. I only used the CPU for training, which was painfully slow. It suddenly occurred to me: can the PyTorch framework leverage ...
https://stackoverflow.com/questions/79737342/what-is-the-relationship-between-intel-extension-for-pytorch-and-pytorch-xpu-ver
python, pytorch, artificial-intelligence, intel, xpu
1,755,363,228
se_77743390
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to load a dataset(.npz) locally in tensorflow?
How to load a dataset(.npz) locally in tensorflow? I'm working on a handwritten didgits recognition project. I need to load the data from mnist dataset. My problem is that I can't use the load_data() function because when it starts downloading the dataset, it returns an error: URL fetch failure on https://storage.goog...
https://stackoverflow.com/questions/77743390/how-to-load-a-dataset-npz-locally-in-tensorflow
python, tensorflow, artificial-intelligence
1,704,143,918
se_79734301
stackoverflow
ARTIFICIAL_INTELLIGENCE
PettingZoo + Ray RLlib card game
PettingZoo + Ray RLlib card game I created a simple card game for 2 players with PettingZoo and agents are trained with Ray RLlib (PPO). Game rules are: 2 players, 32 cards (7 to ace) each trick both players play one card on table, higher card takes and that player plays next both players have 10 cards and after each...
https://stackoverflow.com/questions/79734301/pettingzoo-ray-rllib-card-game
python, artificial-intelligence, ray, pettingzoo
1,755,089,877
se_79736455
stackoverflow
ARTIFICIAL_INTELLIGENCE
Replacing WideResNet50 with EfficientNetV2-M in GLASS defect detection model causes Module layer2 not found in the model
Replacing WideResNet50 with EfficientNetV2-M in GLASS defect detection model causes Module layer2 not found in the model I’m using the GLASS defect detection model and want to replace its default wideresnet50 backbone with efficientnetv2_m in shell/run-custom.sh.However, when I run bash run-custom.sh I get the follow...
https://stackoverflow.com/questions/79736455/replacing-wideresnet50-with-efficientnetv2-m-in-glass-defect-detection-model-cau
machine-learning, deep-learning, pytorch, computer-vision, artificial-intelligence
1,755,263,394
se_79727860
stackoverflow
ARTIFICIAL_INTELLIGENCE
how to solve ValueError: Failed to construct dataset &quot;imdb_reviews&quot;?
how to solve ValueError: Failed to construct dataset &quot;imdb_reviews&quot;? ValueError: Failed to construct dataset "imdb_reviews", builder_kwargs "{'config': 'subwords8k', 'data_dir': None}": BuilderConfig subwords8k not found with version None. Here are 10 BuilderConfigs whose name closely match: I've got thi...
https://stackoverflow.com/questions/79727860/how-to-solve-valueerror-failed-to-construct-dataset-imdb-reviews
python, tensorflow, machine-learning, nlp, artificial-intelligence
1,754,514,942
se_79733790
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to store Gemini 2.5 Flash + MCP multi-turn conversation data (including tool calls and responses)?
How to store Gemini 2.5 Flash + MCP multi-turn conversation data (including tool calls and responses)? I’m building a multi-turn conversation system using Gemini 2.5 Flash with thinking and Model Context Protocol (MCP) tool calls. With OpenAI models, I usually store conversation history as an array of messages (role, ...
https://stackoverflow.com/questions/79733790/how-to-store-gemini-2-5-flash-mcp-multi-turn-conversation-data-including-tool
python, json, artificial-intelligence, large-language-model, google-gemini
1,755,050,952
se_79684810
stackoverflow
ARTIFICIAL_INTELLIGENCE
Vector Search Puzzle: How to efficiently find the least similar documents?
Vector Search Puzzle: How to efficiently find the least similar documents? I'm looking for advice on a vector search problem that goes against the grain of standard similarity searches. What I have: I'm using Genkit with a vector database (Firestore) that's populated with sentence-level text chunks from a large websit...
https://stackoverflow.com/questions/79684810/vector-search-puzzle-how-to-efficiently-find-the-least-similar-documents
artificial-intelligence, vector-database, firebase-genkit, genkit
1,751,288,868
se_79691404
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is there a way to manually set the first part of a model&#39;s response in Ollama?
Is there a way to manually set the first part of a model&#39;s response in Ollama? A bit of context, I recently got into tinkering with LLMs using the ollama python package. My latest project is an AI assistant (how original, I know) with tool calling capabilities. I'm using the qwen3:4b model, and while due to it's s...
https://stackoverflow.com/questions/79691404/is-there-a-way-to-manually-set-the-first-part-of-a-models-response-in-ollama
python, artificial-intelligence, large-language-model, ollama
1,751,759,821
se_79727368
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why does my flwr federated learning setup freeze at round 1 while on deployment engine?
Why does my flwr federated learning setup freeze at round 1 while on deployment engine? I'm new to the federated learning systems and I'm trying to train a model using 2 supernodes (clients). I managed to start the superlink (server) succesfully and successfully connect the nodes to the server and when I run the proje...
https://stackoverflow.com/questions/79727368/why-does-my-flwr-federated-learning-setup-freeze-at-round-1-while-on-deployment
python, pytorch, artificial-intelligence, flower, federated-learning
1,754,487,635
se_79723194
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to enable Spring AI observability labels - spring.ai.tool.call.arguments?
How to enable Spring AI observability labels - spring.ai.tool.call.arguments? In the documentation, in the observability section, in the "Tool Calling" section, in the "High Cardinality Keys" table, it says that the labels spring.ai.tool.call.arguments spring.ai.tool.call.result Only appear in traces when enabled. M...
https://stackoverflow.com/questions/79723194/how-to-enable-spring-ai-observability-labels-spring-ai-tool-call-arguments
java, spring, artificial-intelligence, spring-ai
1,754,120,667
se_79316602
stackoverflow
ARTIFICIAL_INTELLIGENCE
error mat1 and mat2 shapes cannot be multiplied (4x256 and 768x1280) while fine tuning stable video diffusion
error mat1 and mat2 shapes cannot be multiplied (4x256 and 768x1280) while fine tuning stable video diffusion I want to fine tune a stable diffusion model with my dataset. Getting error on line output = lora_unet model used: stable-video-diffusion-img2vid-xt-1-1 Tried some code fixes given by chatgpt but no use. This...
https://stackoverflow.com/questions/79316602/error-mat1-and-mat2-shapes-cannot-be-multiplied-4x256-and-768x1280-while-fine
pytorch, artificial-intelligence, stable-diffusion
1,735,521,266
se_52481460
stackoverflow
ARTIFICIAL_INTELLIGENCE
gTTS Doesn&#39;t Save MP3 Files
gTTS Doesn&#39;t Save MP3 Files I want to create an artificial intelligence program using Python. I found out that I need gTTS but it doesn't save mp3 files. Help me, please. #gtts is imported def talkToMe(audio, lgg = 'en'): #print(audio) tts = gTTS(text = audio, lang = lgg) #tts.save('audio.mp3') #doesn...
https://stackoverflow.com/questions/52481460/gtts-doesnt-save-mp3-files
python, artificial-intelligence, google-text-to-speech
1,537,798,980
se_79672799
stackoverflow
ARTIFICIAL_INTELLIGENCE
What&#39;s this section before the full epochs?
What&#39;s this section before the full epochs? Very newbie question here, but I was training an neural network using fastai, and I noticed something. <img src="https://i.sstatic.net/yoOlzy0w.png" alt="epoch train_loss valid_loss accuracy time 0 0.461840 0.388988 0.826160 03:24 epoch train_loss v...
https://stackoverflow.com/questions/79672799/whats-this-section-before-the-full-epochs
python, artificial-intelligence, fast-ai
1,750,384,926
se_79711595
stackoverflow
ARTIFICIAL_INTELLIGENCE
Mediapipe Hands module resolves incorrect path to .task file
Mediapipe Hands module resolves incorrect path to .task file I am following the documentation, but BaseOptions seems to resolve the model path incorrectly — instead of using my project directory, it prepends a Python package path. base_options = BaseOptions(model_asset_path='hand_landmarker.task') options = HandLandma...
https://stackoverflow.com/questions/79711595/mediapipe-hands-module-resolves-incorrect-path-to-task-file
python, artificial-intelligence, mediapipe
1,753,261,530
se_78457321
stackoverflow
ARTIFICIAL_INTELLIGENCE
Keras 3 only supports V3 `.keras` files and legacy H5 format files (`.h5` extension). How to fix this bug?
Keras 3 only supports V3 `.keras` files and legacy H5 format files (`.h5` extension). How to fix this bug? ValueError: File format not supported: filepath=C:\Users\fedmor\Desktop\AI\resnet50_coco_best_v2.0.1 (1). Keras 3 only supports V3 .keras files and legacy H5 format files (.h5 extension). Note that the legacy Sav...
https://stackoverflow.com/questions/78457321/keras-3-only-supports-v3-keras-files-and-legacy-h5-format-files-h5-extens
keras, artificial-intelligence, imageai
1,715,295,925
se_79582142
stackoverflow
ARTIFICIAL_INTELLIGENCE
Does langgraph.prebuilt.create_react_agent in LangGraph 0.3.x Use a Default ReAct Prompt Internally?
Does langgraph.prebuilt.create_react_agent in LangGraph 0.3.x Use a Default ReAct Prompt Internally? I am working with langgraph version 0.3.x, specifically using the langgraph.prebuilt.create_react_agent function to set up an agent. The function signature allows for an optional prompt parameter. My question is about ...
https://stackoverflow.com/questions/79582142/does-langgraph-prebuilt-create-react-agent-in-langgraph-0-3-x-use-a-default-reac
artificial-intelligence, langchain, agent, langgraph
1,745,049,311
se_79557313
stackoverflow
ARTIFICIAL_INTELLIGENCE
No attention output in jinaai/jina-embeddings-v3 embedding model
No attention output in jinaai/jina-embeddings-v3 embedding model When I use this model like so - from transformers import AutoModel, AutoTokenizer model_id = "jinaai/jina-embeddings-v3" tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True) model = AutoModel.from_pretrained(model_id, trust_remote...
https://stackoverflow.com/questions/79557313/no-attention-output-in-jinaai-jina-embeddings-v3-embedding-model
machine-learning, nlp, artificial-intelligence, huggingface-transformers, sentence-transformers
1,743,874,155
se_79362899
stackoverflow
ARTIFICIAL_INTELLIGENCE
Where are LangChain&#39;s chat templates stored?
Where are LangChain&#39;s chat templates stored? You know how when you use chains or agents, LangChain automatically adds all the necessary chat templates? Well, I decided to look for them, to see how they actually look. But, I could not find them anywhere. In fact, even when I searched the special tokens directly on ...
https://stackoverflow.com/questions/79362899/where-are-langchains-chat-templates-stored
artificial-intelligence, prompt, langchain, large-language-model, huggingface
1,737,057,120
se_76502318
stackoverflow
ARTIFICIAL_INTELLIGENCE
XGBoost: How to use a DMatrix with scikit-learn interface .fit
XGBoost: How to use a DMatrix with scikit-learn interface .fit I am currently using the scikit-learn interface for XGBoost in my project. However, I have an extremely large dataset, and each time I call .fit, the data is converted to a DMatrix, which is very time-consuming, especially when using a GPU that trains rela...
https://stackoverflow.com/questions/76502318/xgboost-how-to-use-a-dmatrix-with-scikit-learn-interface-fit
python, machine-learning, artificial-intelligence, xgboost
1,687,118,185
se_79701508
stackoverflow
ARTIFICIAL_INTELLIGENCE
Cache updates in chatbot when adding new documents
Cache updates in chatbot when adding new documents I'm building a chatbot to answer legal-related questions. I'm facing an issue with caching questions and responses — the goal is to retrieve an answer when someone asks a similar question that's already been saved. However, when I add new documents to the chatbot, the...
https://stackoverflow.com/questions/79701508/cache-updates-in-chatbot-when-adding-new-documents
python, caching, artificial-intelligence, chatbot, langchain
1,752,548,055
se_58358016
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to improve performance using Transposition Table in Game Playing?
How to improve performance using Transposition Table in Game Playing? I have implemented iterative deepening with alpha-beta pruning in my game and I also added a Transposition Table to store already evaluated boards. Right now, I am doing the following: When running iterative deepening, at depth = 0 it evaluates a...
https://stackoverflow.com/questions/58358016/how-to-improve-performance-using-transposition-table-in-game-playing
artificial-intelligence, hashtable, minimax, alpha-beta-pruning, iterative-deepening
1,570,910,604
se_79693338
stackoverflow
ARTIFICIAL_INTELLIGENCE
HDBSCAN Interpretation and Logic
HDBSCAN Interpretation and Logic I have made a basic HDBSCAN model (picture output below) but I need to figure out names for the individual clusters. Is there a way I can get something like a decision tree or the parameters for each cluster as that is what I need to classify these clusters properly. For example: cat...
https://stackoverflow.com/questions/79693338/hdbscan-interpretation-and-logic
python, machine-learning, artificial-intelligence, decision-tree, hdbscan
1,751,917,233
se_79685083
stackoverflow
ARTIFICIAL_INTELLIGENCE
MCP Server HTTP connection across multiple server instances
MCP Server HTTP connection across multiple server instances I'm developing an MCP server in TypeScript, using StreamableHTTPServerTransport to expose it over HTTP. My deployment scenario is as follows: I have two instances of the server running in parallel. There is an NGINX in front of these instances, which handles...
https://stackoverflow.com/questions/79685083/mcp-server-http-connection-across-multiple-server-instances
node.js, typescript, artificial-intelligence, model-context-protocol
1,751,301,519
se_78607809
stackoverflow
ARTIFICIAL_INTELLIGENCE
Xcode 16.0 beta AI feature confirmation
Xcode 16.0 beta AI feature confirmation Ive installed Xcode 16 beta, and am wondering if there is a screen or setting I can use to confirm if the new AI feature pre-requisites are met and the service is active?? From talks it sounds like I have to be on MacOS 15 beta as well. Thanks, Chris
https://stackoverflow.com/questions/78607809/xcode-16-0-beta-ai-feature-confirmation
ios, xcode, artificial-intelligence, xcode16
1,718,112,170
se_79689947
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to solve error multiple tools with the same name in MCP
How to solve error multiple tools with the same name in MCP I implemented two Spring AI Model Context Protocol (MCP), client and server. Especially, I used Standard MCP Client with SSE HTTP protocol and WebMVC Server Transport for MCP sever. Both start without problem. But, when I send a request to MCP Client, I get a...
https://stackoverflow.com/questions/79689947/how-to-solve-error-multiple-tools-with-the-same-name-in-mcp
java, spring, artificial-intelligence, ollama, model-context-protocol
1,751,621,110
se_79663088
stackoverflow
ARTIFICIAL_INTELLIGENCE
OCI Generative AI Agent API returns &quot;Unknown resource&quot; 404 error when invoked from Oracle Function
OCI Generative AI Agent API returns &quot;Unknown resource&quot; 404 error when invoked from Oracle Function I'm working with Oracle Cloud Infrastructure and trying to invoke a Generative AI Agent from an Oracle Function using the Python SDK. Everything seems correctly set up, but I'm getting a 404 Unknown resource er...
https://stackoverflow.com/questions/79663088/oci-generative-ai-agent-api-returns-unknown-resource-404-error-when-invoked-fr
python, sdk, artificial-intelligence, oracle-apex, oracle-cloud-infrastructure
1,749,713,035
se_79685782
stackoverflow
ARTIFICIAL_INTELLIGENCE
softmax functions always outputing garbage numbers that don&#39;t add up to one
softmax functions always outputing garbage numbers that don&#39;t add up to one I am creating a simple NN from scratch that can classify MNIST digits, It only has 1 hidden layer:- Loading the data: import numpy as np import matplotlib.pyplot as plt from keras.datasets import mnist (x_train, y_train), (x_test, y_test)...
https://stackoverflow.com/questions/79685782/softmax-functions-always-outputing-garbage-numbers-that-dont-add-up-to-one
python, numpy, machine-learning, deep-learning, artificial-intelligence
1,751,360,619
se_76518144
stackoverflow
ARTIFICIAL_INTELLIGENCE
Trouble deleting ChromaDB documents
Trouble deleting ChromaDB documents I can't seem to delete documents from my Chroma vector database. I would appreciate any insight as to why this example does not work, and what modifications can/should be made to get it functioning correctly. import dotenv import os import chromadb from chromadb.config import Settin...
https://stackoverflow.com/questions/76518144/trouble-deleting-chromadb-documents
python, database, artificial-intelligence, openai-api, chromadb
1,687,292,362
se_2877724
stackoverflow
ARTIFICIAL_INTELLIGENCE
Rush Hour puzzle - how to avoid huge search tree?
Rush Hour puzzle - how to avoid huge search tree? I'm trying to write a solver for the Rush Hour puzzle. Rush Hour The game consists of a collection of cars of varying sizes, set either horizontally or vertically, on a NxM grid that has a single exit. Each car can move forward/backward in the directions it's set in, ...
https://stackoverflow.com/questions/2877724/rush-hour-puzzle-how-to-avoid-huge-search-tree
algorithm, language-agnostic, artificial-intelligence
1,274,388,821
se_79601333
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to limit input prompt tokens in Vercel AI SDK?
How to limit input prompt tokens in Vercel AI SDK? I'm using Vercel's AI SDK to generate streamed responses from various providers and models. While the streamText function allows setting maxTokens for output, I’m unsure how to control or limit the input tokens being sent. A few things I'm trying to figure out: Is the...
https://stackoverflow.com/questions/79601333/how-to-limit-input-prompt-tokens-in-vercel-ai-sdk
reactjs, node.js, artificial-intelligence, vercel-ai, ai-sdk
1,746,068,718
se_79537265
stackoverflow
ARTIFICIAL_INTELLIGENCE
Adding temperature when using semanticKernel and OLLAMA connector
Adding temperature when using semanticKernel and OLLAMA connector I have this code that works: public ChatOllama(string? model = null, string? systemPrompt = null, Uri? endpoint = null, TimeSpan? timeout = null) { SystemPrompt = systemPrompt ?? SystemPrompt; string ollamaModel = string.IsNullOrEmpty(model)...
https://stackoverflow.com/questions/79537265/adding-temperature-when-using-semantickernel-and-ollama-connector
c#, artificial-intelligence, ollama, semantic-kernel
1,743,022,411
se_68340372
stackoverflow
ARTIFICIAL_INTELLIGENCE
Minimax algorithm AI not picking the correct choice
Minimax algorithm AI not picking the correct choice I have tried to implement the minimax algorithm with alpha/beta pruning for a TicTacToe game I'm making in the Godot Engine, however, it doesn't seem to work as expected. The AI seems to always pick the next available spot on the board from left to right. Can anyone ...
https://stackoverflow.com/questions/68340372/minimax-algorithm-ai-not-picking-the-correct-choice
artificial-intelligence, tic-tac-toe, minimax, godot
1,626,043,176
se_75244523
stackoverflow
ARTIFICIAL_INTELLIGENCE
Python compare images of, piece of, clothing (identification)
Python compare images of, piece of, clothing (identification) As an example I have two pictures with a particular type of clothing of a certain brand. I can download a lot of different images of this same piece, and color, of clothing I want to create a model which can recognize the item based on a picture. I tried t...
https://stackoverflow.com/questions/75244523/python-compare-images-of-piece-of-clothing-identification
python, machine-learning, artificial-intelligence
1,674,726,801
se_79677924
stackoverflow
ARTIFICIAL_INTELLIGENCE
RecurrentPPO model from sb3-contrib always gives me policy gradient loss and explained variance close to 0
RecurrentPPO model from sb3-contrib always gives me policy gradient loss and explained variance close to 0 Im working on trainning an RPPO agent to handle a temperature control system. Here's some snippet of the code. class TempControlSeqEnv(gym.Env): def __init__(self, curriculum_phase, time_steps=5): sup...
https://stackoverflow.com/questions/79677924/recurrentppo-model-from-sb3-contrib-always-gives-me-policy-gradient-loss-and-exp
python, artificial-intelligence, reinforcement-learning, stable-baselines, actor-critics
1,750,782,685
se_79672782
stackoverflow
ARTIFICIAL_INTELLIGENCE
What&#39;s the context limit for the Foundation Models Framework?
What&#39;s the context limit for the Foundation Models Framework? When using the foundation models framework in iOS 26, what's the context length limit for message inputs?
https://stackoverflow.com/questions/79672782/whats-the-context-limit-for-the-foundation-models-framework
ios, machine-learning, artificial-intelligence
1,750,382,479
se_49478637
stackoverflow
ARTIFICIAL_INTELLIGENCE
Differentiate between Handwritten and Machine printed texts
Differentiate between Handwritten and Machine printed texts Is there an effective way to detect and extract only the handwritten portions from a noisy image containing a mix of handwritten and machine-printed text? False Bug Your post is mostly images. Add additional details to explain the problem and expected result...
https://stackoverflow.com/questions/49478637/differentiate-between-handwritten-and-machine-printed-texts
machine-learning, image-processing, computer-vision, artificial-intelligence
1,521,998,289
se_79672922
stackoverflow
ARTIFICIAL_INTELLIGENCE
AttributeError: &#39;LlmAgent&#39; object has no attribute &#39;invoke&#39;
AttributeError: &#39;LlmAgent&#39; object has no attribute &#39;invoke&#39; I am trying to call Flask API which i alrady running on port 5000 on my system, i am desgning a agentic AI code which will invoke GET and then POSt based on some condition , and using google-adk. I have below code import requests from google.a...
https://stackoverflow.com/questions/79672922/attributeerror-llmagent-object-has-no-attribute-invoke
python, artificial-intelligence, large-language-model, agent, rag
1,750,400,312
se_79666939
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to improve object judgment accuracy in ASP.NET Core with CustomVision
How to improve object judgment accuracy in ASP.NET Core with CustomVision I'm using the CustomVision in an ASP.NET Core project to judge the objects. I trained the model with 20 dog and cat images, but the judgement result is useless. If I present an image, this model only replies as nearly 50%:50% ratio of cat to dog...
https://stackoverflow.com/questions/79666939/how-to-improve-object-judgment-accuracy-in-asp-net-core-with-customvision
azure, machine-learning, asp.net-core-mvc, artificial-intelligence, azure-cognitive-services
1,750,031,357
se_79665469
stackoverflow
ARTIFICIAL_INTELLIGENCE
Google ADK Building Agent - Pydantic Validation Error
Google ADK Building Agent - Pydantic Validation Error I am trying to build an agent in Google adk by passing in some JSON formatted input to one agent as input_schema but for some reason the error keeps popping up. QAAgentPrompt = "Checks the information for accuracy, completeness, and consistency." ComplianceAgentPro...
https://stackoverflow.com/questions/79665469/google-adk-building-agent-pydantic-validation-error
python, artificial-intelligence, pydantic, adk, google-agent-development-kit
1,749,858,081
se_1110439
stackoverflow
ARTIFICIAL_INTELLIGENCE
Chess Optimizations
Chess Optimizations I have been working on my chess program for a while and I am beginning to hit a wall. I have done all of the standard optimizations (negascout, iterative deepening, killer moves, history heuristic, quiescent search, pawn position evaluation, some search extensions) and I'm all out of ideas! I am lo...
https://stackoverflow.com/questions/1110439/chess-optimizations
algorithm, artificial-intelligence, chess
1,247,241,433
se_78895436
stackoverflow
ARTIFICIAL_INTELLIGENCE
Module not found error when using ScrapeGraphAI
Module not found error when using ScrapeGraphAI I am doing a simple example using ScrapeGraphAI, found on this link ScrapeGraphAI Github. I have installed the packages in the virtual environment, as shown in the link: pip install scrapegraphai playwright install But when I run the code from scrapegraphai.graphs impo...
https://stackoverflow.com/questions/78895436/module-not-found-error-when-using-scrapegraphai
python, machine-learning, web-scraping, artificial-intelligence
1,724,221,923
se_79664201
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is predict_proba function thread safe, when callin model.predict_proba from multiple threads?
Is predict_proba function thread safe, when callin model.predict_proba from multiple threads? I have some_ai_model.sav model that I want to integrate using python FastAPI. I'm wondering: is the model’s predict_proba function thread-safe? If multiple requests come into the app, would it be a problem if I only have a s...
https://stackoverflow.com/questions/79664201/is-predict-proba-function-thread-safe-when-callin-model-predict-proba-from-mult
python, thread-safety, artificial-intelligence, fastapi, joblib
1,749,771,337
se_79640602
stackoverflow
ARTIFICIAL_INTELLIGENCE
i can&#39;t fix this error when evaluating my RL model
i can&#39;t fix this error when evaluating my RL model I'm working with a Gym environment and a trained RL model. I'm running an evaluation loop to collect observations and rewards. Here's a snippet of the code: total_reward = 0 obs_test = env_test.reset() all_mirs = [] for step in range(1728): # For 24 hours with 5...
https://stackoverflow.com/questions/79640602/i-cant-fix-this-error-when-evaluating-my-rl-model
python, artificial-intelligence
1,748,353,273
se_79662912
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I improve the accuracy of my Transformer-based text classification model (news headlines)?
How can I improve the accuracy of my Transformer-based text classification model (news headlines)? I'm training a Transformer-based text classification model from scratch using PyTorch. The goal is to classify news articles (headline + short description) into 15 classes. I'm achieving about 72–75% validation accuracy,...
https://stackoverflow.com/questions/79662912/how-can-i-improve-the-accuracy-of-my-transformer-based-text-classification-model
machine-learning, deep-learning, artificial-intelligence
1,749,702,650
se_79621670
stackoverflow
ARTIFICIAL_INTELLIGENCE
azure document intelligence on premise : response problem
azure document intelligence on premise : response problem I'm trying to deploy an instance of azure doc intelligence on premise in a virtual machine, I followed the steps in the documentation and I can send and receive request from the container, the problem I'm facing is that when I want to analyze a document, it tak...
https://stackoverflow.com/questions/79621670/azure-document-intelligence-on-premise-response-problem
azure, artificial-intelligence, azure-document-intelligence
1,747,232,106
se_79660348
stackoverflow
ARTIFICIAL_INTELLIGENCE
Message content is always empty - CalbyAI
Message content is always empty - CalbyAI I was working on a project that needs an AI API to work with that have no limitations and versatile. I searched for this, and found Cably AI which allows many AI models and some of them is unlimited and free. Now, I tried it using the API which is documented at Cably AI API Do...
https://stackoverflow.com/questions/79660348/message-content-is-always-empty-calbyai
python, python-3.x, artificial-intelligence
1,749,555,040
se_79658818
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is MCP HTTP streaming actually streaming?
Is MCP HTTP streaming actually streaming? The MCP standard released in Nov 2024 HTTP+SSE was recently deprecated and the protocol change to "HTTP streaming". But looks like MCP now default to just old fashioned non streaming HTTP requests by a client with SSE is still there as an option, with the only difference tha...
https://stackoverflow.com/questions/79658818/is-mcp-http-streaming-actually-streaming
http, artificial-intelligence, server-sent-events, model-context-protocol
1,749,469,513
se_79658001
stackoverflow
ARTIFICIAL_INTELLIGENCE
Need Assistance with Fine-tuning my Content Moderation Neural Network with RoBERTa. (Dataset: Jigsaw)
Need Assistance with Fine-tuning my Content Moderation Neural Network with RoBERTa. (Dataset: Jigsaw) I can't quite figure out how to fine-tune my neural network with jigsaw and make it a multi-classifier rather than a binary-classifier (multiple types of output rather than just positive and negative) and need assista...
https://stackoverflow.com/questions/79658001/need-assistance-with-fine-tuning-my-content-moderation-neural-network-with-rober
python, pytorch, artificial-intelligence, data-science
1,749,400,310
se_79657025
stackoverflow
ARTIFICIAL_INTELLIGENCE
Can&#39;t upload JSON file and reference it in OpenAI prompts
Can&#39;t upload JSON file and reference it in OpenAI prompts I'm trying to use the OpenAI C# SDK to upload a JSON file and reference it in prompts. If I include it in a UserChatMessage then this exception is thrown: System.ClientModel.ClientResultException: 'HTTP 400 (invalid_request_error: invalid_value) Parameter:...
https://stackoverflow.com/questions/79657025/cant-upload-json-file-and-reference-it-in-openai-prompts
c#, json, artificial-intelligence, openai-api
1,749,305,343
se_16097189
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to calculate the threshold value for numeric attributes in Quinlan&#39;s C4.5 algorithm?
How to calculate the threshold value for numeric attributes in Quinlan&#39;s C4.5 algorithm? I am trying to find how the C4.5 algorithm determines the threshold value for numeric attributes. I have researched and can not understand, in most places I've found this information: The training samples are first sorted ...
https://stackoverflow.com/questions/16097189/how-to-calculate-the-threshold-value-for-numeric-attributes-in-quinlans-c4-5-al
artificial-intelligence, weka, decision-tree
1,366,345,537
se_75305358
stackoverflow
ARTIFICIAL_INTELLIGENCE
RuntimeError: expected scalar type Float but found Half in Stable Diffusion
RuntimeError: expected scalar type Float but found Half in Stable Diffusion I am currently using Kangle Kurnel using Python version 3.7 It kept saying RuntimeError: expected scalar type Float but found Half installed packs accelerate 0.12.0 torch 1.9.1+cu111 t...
https://stackoverflow.com/questions/75305358/runtimeerror-expected-scalar-type-float-but-found-half-in-stable-diffusion
python, error-handling, pytorch, artificial-intelligence, stable-diffusion
1,675,222,115
se_53846590
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I create an AI for an android app which takes a user provided price offer &amp; will either accept/reject/provide counter-offer as output?
How can I create an AI for an android app which takes a user provided price offer &amp; will either accept/reject/provide counter-offer as output? I firstly apologize in advance if my question is not concise & clear but I need dire help of your knowledge on Android app & AI. Our college group was given a Project topic...
https://stackoverflow.com/questions/53846590/how-can-i-create-an-ai-for-an-android-app-which-takes-a-user-provided-price-offe
android, artificial-intelligence
1,545,205,197
se_79650016
stackoverflow
ARTIFICIAL_INTELLIGENCE
Neural Network model in PyTorch prediction problem for anomaly detection in a simulated irrigation system
Neural Network model in PyTorch prediction problem for anomaly detection in a simulated irrigation system I'm working on my final studies project, which is detecting anomalies in an irrigation system. We simulated the irrigation network on a limited environment as you can see in the photo below.the model we created Th...
https://stackoverflow.com/questions/79650016/neural-network-model-in-pytorch-prediction-problem-for-anomaly-detection-in-a-si
python, machine-learning, pytorch, artificial-intelligence
1,748,882,118
se_31046654
stackoverflow
ARTIFICIAL_INTELLIGENCE
A Star Pathfinding
A Star Pathfinding I've implemented the standard A* Pathfinding algorithm and have it working fine on a 2D grid. My question is, is there a way to weight the lines so they take the "straightest" path instead of the potential shortest path which it currently takes. So instead of the lines taking the short path and mo...
https://stackoverflow.com/questions/31046654/a-star-pathfinding
grid, 2d, artificial-intelligence, path-finding, a-star
1,435,225,218
se_79581891
stackoverflow
ARTIFICIAL_INTELLIGENCE
Gemini Flash Image Generation not working (gemini-2.0-flash-exp)
Gemini Flash Image Generation not working (gemini-2.0-flash-exp) I was using google API to generate images and suddenly everything stopped working. I tried with 3 different keys and all return HTTP request failed! HTTP/1.1 404 Not Found, with this error message: models/gemini-2.0-flash-exp-image-generation is not foun...
https://stackoverflow.com/questions/79581891/gemini-flash-image-generation-not-working-gemini-2-0-flash-exp
google-api, artificial-intelligence, google-gemini
1,745,020,464
se_79068298
stackoverflow
ARTIFICIAL_INTELLIGENCE
valueError: Supplied state dict for layers does not contain `bitsandbytes__*` and possibly other `quantized_stats`(when load saved quantized model)
valueError: Supplied state dict for layers does not contain `bitsandbytes__*` and possibly other `quantized_stats`(when load saved quantized model) We are trying to deploy a quantized Llama 3.1 70B model(from Huggingface, using bitsandbytes), quantizing part works fine as we check the model memory which is correct and...
https://stackoverflow.com/questions/79068298/valueerror-supplied-state-dict-for-layers-does-not-contain-bitsandbytes-an
python, artificial-intelligence, huggingface-transformers, large-language-model, quantization
1,728,440,728
se_11176403
stackoverflow
ARTIFICIAL_INTELLIGENCE
AI search - build a rectangle from 12 tetris shapes how many states are possible?
AI search - build a rectangle from 12 tetris shapes how many states are possible? You have 12 shapes: which you can make each out of five identical squares. You need to combine the 12 pieces to one rectangle. You can form four different rectangles: 2339 solutions (6x10), 2 solutions (3x20), 368 solutions (4x15),...
https://stackoverflow.com/questions/11176403/ai-search-build-a-rectangle-from-12-tetris-shapes-how-many-states-are-possible
search, artificial-intelligence
1,340,530,881
se_78452864
stackoverflow
ARTIFICIAL_INTELLIGENCE
Gemini AI error - &quot;AttributeError: module &#39;google.generativeai&#39; has no attribute &#39;GenerativeModel&#39;&quot;
Gemini AI error - &quot;AttributeError: module &#39;google.generativeai&#39; has no attribute &#39;GenerativeModel&#39;&quot; I am trying to create a script in Jupyter for testing Google Gemini AI model. import google.generativeai as genai import os # genai.configure(api_key="API Key") model = genai.GenerativeModel(...
https://stackoverflow.com/questions/78452864/gemini-ai-error-attributeerror-module-google-generativeai-has-no-attribute
python, artificial-intelligence, google-gemini
1,715,238,729
se_22431676
stackoverflow
ARTIFICIAL_INTELLIGENCE
neural networks in realtime
neural networks in realtime In short: Is it possible to have neural networks react to user input in real time? Imagine a little game with a world that consists of entities that receive inputs of their surroundings and generate outputs using a neural net to achieve survival. The entities should have some sort of abili...
https://stackoverflow.com/questions/22431676/neural-networks-in-realtime
artificial-intelligence, neural-network, mathematical-optimization, genetic-algorithm
1,394,931,275
se_79636095
stackoverflow
ARTIFICIAL_INTELLIGENCE
Coqui-ai TTS in Jenkins job
Coqui-ai TTS in Jenkins job Trying to use Coqui-ai TTS in Jenkins job, and Im getting below err: C:\ProgramData\Jenkins\.jenkins\workspace\Dziennik\scripts>python tts.py --input_text_file_path DU/2025/658 Traceback (most recent call last): File "C:\ProgramData\Jenkins\.jenkins\workspace\Dziennik\scripts\tts.py", li...
https://stackoverflow.com/questions/79636095/coqui-ai-tts-in-jenkins-job
python, jenkins, artificial-intelligence, text-to-speech, coqui
1,748,028,325
se_78507718
stackoverflow
ARTIFICIAL_INTELLIGENCE
Issue with Embedding Chatflow and Passing Parameters to Flowise
Issue with Embedding Chatflow and Passing Parameters to Flowise I've encountered an issue while trying to embed the Flowise chat within a website and pass parameters via chatflowConfig to the flow, specifically to override the "url" for the API node. Unfortunately, none of the parameters I tested seem to work, and it ...
https://stackoverflow.com/questions/78507718/issue-with-embedding-chatflow-and-passing-parameters-to-flowise
artificial-intelligence, flowise
1,716,222,165
se_62579317
stackoverflow
ARTIFICIAL_INTELLIGENCE
Question about implementing Transfer Learning Correctly in Python Keras
Question about implementing Transfer Learning Correctly in Python Keras I have an assignment where I have to use transfer learning on iris images (the dataset is very small). The task is to build a regularized NN to classify the images into their respective classes. My entire code is below: import keras from keras.pre...
https://stackoverflow.com/questions/62579317/question-about-implementing-transfer-learning-correctly-in-python-keras
python, keras, artificial-intelligence, transfer-learning
1,593,100,229
se_78702863
stackoverflow
ARTIFICIAL_INTELLIGENCE
AI search problem solving with infinite state spaces: when do algorithms halt?
AI search problem solving with infinite state spaces: when do algorithms halt? In classical artificial intelligence, there is an area of ​​problem solving by search. And there are several search algorithms, such as: Breadth-first search (BFS), Depth-first search (DFS), Iterative-deepening search (IDS), Uniform cost se...
https://stackoverflow.com/questions/78702863/ai-search-problem-solving-with-infinite-state-spaces-when-do-algorithms-halt
search, artificial-intelligence
1,720,019,002
se_79631762
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error in PyTorch when trying to create a generative AI (autoregression) Model
Error in PyTorch when trying to create a generative AI (autoregression) Model I'm trying to build an AI Model, but am getting this error: Traceback (most recent call last): File "F:\Pendrive\!!! Pivate !!!\Other\Other\Private\AI\PyTorch\Model_1\main.py", line 20, in <module> model.pretrain_on_corpus( File "F:\...
https://stackoverflow.com/questions/79631762/error-in-pytorch-when-trying-to-create-a-generative-ai-autoregression-model
python, machine-learning, error-handling, pytorch, artificial-intelligence
1,747,822,302
se_79631636
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to apply guardrail on the input before sending it to LLM by using bedrock service?
How to apply guardrail on the input before sending it to LLM by using bedrock service? How to apply guardrail on the input before sending it to LLM? I am able to apply guardrails once model generated the text with bedrock by using the below code. It is getting applied on output generated by LLM. bedrock_runtime = boto...
https://stackoverflow.com/questions/79631636/how-to-apply-guardrail-on-the-input-before-sending-it-to-llm-by-using-bedrock-se
artificial-intelligence
1,747,818,170
se_79630362
stackoverflow
ARTIFICIAL_INTELLIGENCE
Monobot.ai – how to include an interaction link in a Send Email action?
Monobot.ai – how to include an interaction link in a Send Email action? I’m building a voice bot on Monobot.ai that takes passenger-transport bookings. After the caller provides their contact info and trip details, I want the bot to: send a confirmation email to our dispatch office with all booking details, including...
https://stackoverflow.com/questions/79630362/monobot-ai-how-to-include-an-interaction-link-in-a-send-email-action
service, artificial-intelligence, agent
1,747,741,499
se_79629981
stackoverflow
ARTIFICIAL_INTELLIGENCE
Issues Getting Ghibli-Style Image Output with Gemini API - What Am I Missing?
Issues Getting Ghibli-Style Image Output with Gemini API - What Am I Missing? I'm starting a venture in AI-powered image applications, and as a learning project, I'm developing a small app that transforms input images into Ghibli-style animation art. To experiment with different APIs, I tried the following models unde...
https://stackoverflow.com/questions/79629981/issues-getting-ghibli-style-image-output-with-gemini-api-what-am-i-missing
python, artificial-intelligence, openai-api, google-gemini
1,747,726,382
se_79621002
stackoverflow
ARTIFICIAL_INTELLIGENCE
remove ultralytics dependency while loading yolo models
remove ultralytics dependency while loading yolo models I have trained a classification model using yolo11n , now i have to write its inference script , but the problem is for development and deployment I have python version 3.6, but yolo and ultralytics supports python version 3.8 and above only , I have tried to con...
https://stackoverflow.com/questions/79621002/remove-ultralytics-dependency-while-loading-yolo-models
python, machine-learning, artificial-intelligence
1,747,210,092
se_79622804
stackoverflow
ARTIFICIAL_INTELLIGENCE
Jagged floorplan points: How to split into clean line segments?
Jagged floorplan points: How to split into clean line segments? "walls": [ { "start": { "x": 666, "y": 137 }, "end": { "x": 666, "y": 138 }, "length": 1.0 }, { "start": { "x": 666, "y": 1...
https://stackoverflow.com/questions/79622804/jagged-floorplan-points-how-to-split-into-clean-line-segments
opencv, artificial-intelligence
1,747,293,136
se_79621382
stackoverflow
ARTIFICIAL_INTELLIGENCE
Speaker Diarization
Speaker Diarization I need to upload an audio file where two or more speakers are having a conversation, and at times their speech overlaps. The requirement is to segment the audio into distinct chunks, each corresponding clearly to a different speaker(Which speaker say what). I have used speaker diarization for this ...
https://stackoverflow.com/questions/79621382/speaker-diarization
python, machine-learning, artificial-intelligence, audio-processing
1,747,222,400