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_60257132 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Usage of pre-trained deep leanring models for commercial usage | Usage of pre-trained deep leanring models for commercial usage
There are various pre-trained deep learing models availabel which are trained using data present in ImageNet(or any other data source) like AlexNet, VGGNet, Inception, ResNet, Xception, MobileNet, SqueezeNet etc. I want to develop a certain object detectio... | https://stackoverflow.com/questions/60257132/usage-of-pre-trained-deep-leanring-models-for-commercial-usage | deep-learning, artificial-intelligence | 1,581,921,750 |
se_45582182 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Possibility of identification of non trained item in Machine Learning | Possibility of identification of non trained item in Machine Learning
A machine learning model has been trained to recognize the name of Animals and Plants. If suppose an automobile name is given, is it possible to say that the given name doesn't belong to the category animals or plants. If possible, kindly mention th... | https://stackoverflow.com/questions/45582182/possibility-of-identification-of-non-trained-item-in-machine-learning | machine-learning, deep-learning, neural-network, artificial-intelligence | 1,502,255,906 |
se_72611335 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What are the differences between fine tuning and few shot learning? | What are the differences between fine tuning and few shot learning?
I am trying to understand the concept of fine-tuning and few-shot learning.
I understand the need for fine-tuning. It is essentially tuning a pre-trained model to a specific downstream task. However, recently I have seen a plethora of blog posts stati... | https://stackoverflow.com/questions/72611335/what-are-the-differences-between-fine-tuning-and-few-shot-learning | machine-learning, deep-learning, artificial-intelligence, fine-tuning, few-shot-learning | 1,655,178,863 |
se_71789744 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to measure the similarity between a whole group of images? | How to measure the similarity between a whole group of images?
I need to compare the similarity between images inside different groups. I know that there are ways to evaluate the similarity between 2 images (e.g. https://github.com/richzhang/PerceptualSimilarity).
But I have 2 different groups with 100 images each and... | https://stackoverflow.com/questions/71789744/how-to-measure-the-similarity-between-a-whole-group-of-images | image, image-processing, comparison, artificial-intelligence, similarity | 1,649,371,467 |
se_63086204 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Can i program an AI that reads what is on the screen and then does some simple task on the computer | Can i program an AI that reads what is on the screen and then does some simple task on the computer
So i was thinking is there a way i can program an AI that reads something(numbers mostly, in a font and a particular area on the screen that i will specify) and then perform some clicks on the screen according to what i... | https://stackoverflow.com/questions/63086204/can-i-program-an-ai-that-reads-what-is-on-the-screen-and-then-does-some-simple-t | automation, artificial-intelligence | 1,595,666,266 |
se_54237327 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why is a target network required? | Why is a target network required?
I have a concern in understanding why a target network is necessary in DQN? I’m reading paper on “human-level control through deep reinforcement learning”
I understand Q-learning. Q-learning is value-based reinforcement learning algorithm that learns “optimal” probability distributio... | https://stackoverflow.com/questions/54237327/why-is-a-target-network-required | deep-learning, artificial-intelligence | 1,547,732,811 |
se_5749867 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Is a neural network a lazy or eager learning method? | Is a neural network a lazy or eager learning method?
Is a neural network a lazy or eager learning method? Different web pages say different things so I want to get a solid answer with good literature to back it up. The most obvious book to look in would be Mitchell's famous Machine Learning book but skimming through... | https://stackoverflow.com/questions/5749867/is-a-neural-network-a-lazy-or-eager-learning-method | artificial-intelligence, machine-learning, neural-network | 1,303,420,585 |
se_9250630 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Completeness of depth-first search | Completeness of depth-first search
I quote from Artificial Intelligence: A Modern Approach:
The properties of depth-first search depend strongly on whether the graph-search or tree-search version is used. The graph-search version, which avoids repeated states and redundant paths, is complete in finite state spaces... | https://stackoverflow.com/questions/9250630/completeness-of-depth-first-search | tree, artificial-intelligence, graph-theory, graph-traversal, search-tree | 1,329,065,680 |
se_79397179 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Keyboard detection algorithm | Keyboard detection algorithm
I am working on an algorithm for detecting keys and keyboard body from an image. The model of the keyboard is known, so a blender env. has been created to generate images with random lighting, angle, textures and objects on screen for training. I have chosen an approach utilising a UNet wi... | https://stackoverflow.com/questions/79397179/keyboard-detection-algorithm | neural-network, artificial-intelligence, classification, detection, training-data | 1,738,163,118 |
se_79143533 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to add gemini tuned model to my app in android studio | How to add gemini tuned model to my app in android studio
I am developing a mobile emergency app for Android as part of my computer engineering thesis. I have integrated the Gemini API to create a first aid assistance system, and I have already generated an API key and tested the initial code.
My problem is that the m... | https://stackoverflow.com/questions/79143533/how-to-add-gemini-tuned-model-to-my-app-in-android-studio | java, firebase, android-studio, artificial-intelligence, google-gemini | 1,730,349,837 |
se_76086477 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to make a Python program to predict the next outcome of a game (of picking a color out of two), using AI and machine learning libraries | How to make a Python program to predict the next outcome of a game (of picking a color out of two), using AI and machine learning libraries
I wanted to make a program in Python using the LSTM technique that can predict the next outcome or say probability of a picking a color out of two. The program should use AI and m... | https://stackoverflow.com/questions/76086477/how-to-make-a-python-program-to-predict-the-next-outcome-of-a-game-of-picking-a | python, numpy, machine-learning, artificial-intelligence, lstm | 1,682,273,298 |
se_79388492 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Python chess engine is too slow | Python chess engine is too slow
I have a working 1600 blitz level bot but it works too slow in python using python chess library. I tried to optimize the functions in eval function but the best it can do is depth 4 since it takes a second for average of 6000 nodes, and the functions are not even that complex, doubled ... | https://stackoverflow.com/questions/79388492/python-chess-engine-is-too-slow | artificial-intelligence, chess, python-chess | 1,737,893,252 |
se_78858483 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Error: [GoogleGenerativeAI Error]: Error fetching from ..: [400 ] API key not valid. Please pass a valid API key | Error: [GoogleGenerativeAI Error]: Error fetching from ..: [400 ] API key not valid. Please pass a valid API key
i am getiing this error:
Error: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent:
[400 ] API key not valid. Please pa... | https://stackoverflow.com/questions/78858483/error-googlegenerativeai-error-error-fetching-from-400-api-key-not-va | artificial-intelligence, google-gemini | 1,723,384,035 |
se_79402260 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Key invalid or doesn't use the region provided, but credentials are all correct. Azure AI Custom Translator | Key invalid or doesn't use the region provided, but credentials are all correct. Azure AI Custom Translator
So we have an Azure AI Translator instance running.
But when I try to create a workspace for it in the Custom Translation Portal I get this error:
The key is either invalid or doesn't use the region provided... | https://stackoverflow.com/questions/79402260/key-invalid-or-doesnt-use-the-region-provided-but-credentials-are-all-correct | azure, artificial-intelligence, translation, foundry | 1,738,315,140 |
se_71581197 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What is the loss function used in Trainer from the Transformers library of Hugging Face? | What is the loss function used in Trainer from the Transformers library of Hugging Face?
What is the loss function used in Trainer from the Transformers library of Hugging Face?
I am trying to fine tune a BERT model using the Trainer class from the Transformers library of Hugging Face.
In their documentation, they men... | https://stackoverflow.com/questions/71581197/what-is-the-loss-function-used-in-trainer-from-the-transformers-library-of-huggi | python, machine-learning, nlp, artificial-intelligence, huggingface-transformers | 1,648,002,951 |
se_77629141 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I need help implementing Negascout (principal variation search) for Othello | I need help implementing Negascout (principal variation search) for Othello
I am trying to implement pvs into my Othello ai, as a way to improve on alpha beta proning, but when I implement it, it is actually slower by about double, my question is, how would I implement it, and can i do it by keeping min/man and not ha... | https://stackoverflow.com/questions/77629141/i-need-help-implementing-negascout-principal-variation-search-for-othello | python, artificial-intelligence, heuristics, othello | 1,702,069,153 |
se_79387529 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Function Calling Google GEMINI AI- TypeError: Invalid input type. Expected an instance of `genai.FunctionDeclarationType` | Function Calling Google GEMINI AI- TypeError: Invalid input type. Expected an instance of `genai.FunctionDeclarationType`
I am trying to run a simple Random Forest Classification Model using the iris dataset and integrate it into Gemini AI
Here is my code:
import google.generativeai as genai
from vertexai.preview.gene... | https://stackoverflow.com/questions/79387529/function-calling-google-gemini-ai-typeerror-invalid-input-type-expected-an-in | machine-learning, scikit-learn, artificial-intelligence, google-gemini | 1,737,839,231 |
se_79104305 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Context Length Limitation When Fine-Tuning Llama 3.1 in Colab | Context Length Limitation When Fine-Tuning Llama 3.1 in Colab
I am fine-tuning the Llama 3.1 model in Google Colab Pro using an A100 GPU with a custom dataset (using LoRA techniques) via the Unsloth library. Below is the LoRA code I am using:
max_seq_length = 2048
model = FastLanguageModel.get_peft_model(
model,
... | https://stackoverflow.com/questions/79104305/context-length-limitation-when-fine-tuning-llama-3-1-in-colab | machine-learning, deep-learning, artificial-intelligence, llama, fine-tuning | 1,729,317,566 |
se_77631329 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why can't weight be updated when using detach()? | Why can't weight be updated when using detach()?
I'm programming VGG model for a school project but this model causes problems during training.
If I use detach() to two tensors that is scaled_similarity and target_tensor, the weights of the model are not updated. but if I don't use detach() to the tensors, an erro... | https://stackoverflow.com/questions/77631329/why-cant-weight-be-updated-when-using-detach | python, pytorch, conv-neural-network, artificial-intelligence, vgg-net | 1,702,126,130 |
se_79362131 | stackoverflow | ARTIFICIAL_INTELLIGENCE | About pytorch model input sample size | About pytorch model input sample size
I'm newbie in pytorch and AI.
I found a repo (https://github.com/kacperbednarz1997/AMC_nets) where author compares various models for automatic modulation classification (AMC).
I get all datasets used (RadioML2016.10a, RadioML2016.10b, RadioML2018.01a and MIGOU).
For example, I tr... | https://stackoverflow.com/questions/79362131/about-pytorch-model-input-sample-size | dataset, artificial-intelligence, torch | 1,737,040,499 |
se_79361227 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I am getting "An error occurred (resourceNotFoundException) when calling the InvokeAgent operation: Knowledge Base with id 7M7ACWA9BQ does not exist" | I am getting "An error occurred (resourceNotFoundException) when calling the InvokeAgent operation: Knowledge Base with id 7M7ACWA9BQ does not exist"
I am trying to invoke an agent I built in an agent builder. The agent works fine in the aws console and was trying to make a call to it using a Python code as ... | https://stackoverflow.com/questions/79361227/i-am-getting-an-error-occurred-resourcenotfoundexception-when-calling-the-inv | python, amazon-web-services, artificial-intelligence, boto3, amazon-bedrock | 1,737,023,995 |
se_2247089 | stackoverflow | ARTIFICIAL_INTELLIGENCE | what languages are used in AI research today? | what languages are used in AI research today?
I am currently dabbling in expert systems, emacs lisp, and reading up about artificial intelligence. Traditionally, artificial intelligence is associated with LISP and expert systems with CLIPS. However, I have noticed in computational sciences how much Python is being u... | https://stackoverflow.com/questions/2247089/what-languages-are-used-in-ai-research-today | functional-programming, filesystems, programming-languages, artificial-intelligence, expert-system | 1,265,916,244 |
se_38595451 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why do neural networks work so well? | Why do neural networks work so well?
I understand all the computational steps of training a neural network with gradient descent using forwardprop and backprop, but I'm trying to wrap my head around why they work so much better than logistic regression.
For now all I can think of is:
A) the neural network can learn... | https://stackoverflow.com/questions/38595451/why-do-neural-networks-work-so-well | machine-learning, neural-network, artificial-intelligence | 1,469,551,111 |
se_78953075 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Completions.create() got an unexpected keyword argument 'request_timeout' | Completions.create() got an unexpected keyword argument 'request_timeout'
I am using Autogen from microsoft with the below code:
import autogen
from autogen import AssistantAgent, UserProxyAgent
config_list = [
{
'model': 'gpt-4',
'api_key': 'API_KEY'
}
]
llm_config={
"request_tim... | https://stackoverflow.com/questions/78953075/completions-create-got-an-unexpected-keyword-argument-request-timeout | python, artificial-intelligence, openai-api, ms-autogen | 1,725,539,865 |
se_79203990 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Error: "command must be one of 'from', 'license', 'template', 'system', 'adapter', 'parameter', or 'message'" when creating a custom model in Ollama | Error: "command must be one of 'from', 'license', 'template', 'system', 'adapter', 'parameter', or 'message'" when creating a custom model in Ollama
I'm trying to create a custom model using Ollama, but when I run the following command:
ollama create my... | https://stackoverflow.com/questions/79203990/error-command-must-be-one-of-from-license-template-system-adapter | yaml, artificial-intelligence, chatbot, ollama | 1,732,029,369 |
se_34311785 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Is there any classifier which is able to make decisions very fast? | Is there any classifier which is able to make decisions very fast?
Most classification algorithms are developed to improve the training speed. However, is there any classifier or algorithm focusing on the decision making speed(low computation complexity and simple realizable structure)? I can get enough training data,... | https://stackoverflow.com/questions/34311785/is-there-any-classifier-which-is-able-to-make-decisions-very-fast | machine-learning, neural-network, artificial-intelligence, svm | 1,450,268,126 |
se_79362113 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why is my AI training on GPU is a lot slower than CPU | Why is my AI training on GPU is a lot slower than CPU
I'm currently training my simple prediction AI but my GPU is training at 40S per epochs while my CPU is training at 9S per epochs
my CPU is i7-4720HQ and my GPU is Nvidia 950m
this is my code
`import tensorflow as tf
import pandas as pd
from sklearn.preprocessing... | https://stackoverflow.com/questions/79362113/why-is-my-ai-training-on-gpu-is-a-lot-slower-than-cpu | machine-learning, artificial-intelligence, gpu, cpu | 1,737,040,307 |
se_79354534 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to load a finetuned vision llm model? Moondream model case | How to load a finetuned vision llm model? Moondream model case
I've finetuned the moondream model for my own image inference case. I used the finetune script provided on the official repository.
It all went well after learning how to use the script for my dataset.
The script generated the following files when i've "sa... | https://stackoverflow.com/questions/79354534/how-to-load-a-finetuned-vision-llm-model-moondream-model-case | python, artificial-intelligence, huggingface-transformers, large-language-model | 1,736,847,414 |
se_77823012 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to use GNNexplainer for graph classification in the latest version of torch-geometric (2.4.0)? | How to use GNNexplainer for graph classification in the latest version of torch-geometric (2.4.0)?
I applied a GCN for graph binary classification, and I want to use GNNexplainer to explain the prediction. But I don't know how to apply GNNexplainer on my model.
Here is my GCN model code:
class GCNModel(nn.Module):
... | https://stackoverflow.com/questions/77823012/how-to-use-gnnexplainer-for-graph-classification-in-the-latest-version-of-torch | python, artificial-intelligence, pytorch-geometric, gnn | 1,705,367,208 |
se_77287524 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I implement "AI Virtual Furniture Staging" in a React Native app? | How can I implement "AI Virtual Furniture Staging" in a React Native app?
I want to implement AI Interior Designing in my Real Estate app built in react native.
I need functionality like apps MyRoom etc. OR websites like https://www.virtualstagingai.app/ OR https://decorai.io/
Do anyone know something about ... | https://stackoverflow.com/questions/77287524/how-can-i-implement-ai-virtual-furniture-staging-in-a-react-native-app | android, ios, react-native, artificial-intelligence, tensorflow-lite | 1,697,198,240 |
se_43319120 | stackoverflow | ARTIFICIAL_INTELLIGENCE | MachineLearning or DecisionTree for job matching? | MachineLearning or DecisionTree for job matching?
I'm working on a job matching app and I was wondering what's the best way to match elements between themselves to sort the best result?
In my mind it's by going through a decision tree as we already know the structure of the element and the expected result.
However, w... | https://stackoverflow.com/questions/43319120/machinelearning-or-decisiontree-for-job-matching | machine-learning, artificial-intelligence | 1,491,815,448 |
se_78712629 | stackoverflow | ARTIFICIAL_INTELLIGENCE | GPT LangChain experimental agent - allow dangerous code | GPT LangChain experimental agent - allow dangerous code
I'm creating a chatbot in VS Code where it will receive csv file through a prompt on Streamlit interface.
However from the moment that file is loaded, it is showing a message with the following content:
ValueError: This agent relies on access to a python repl t... | https://stackoverflow.com/questions/78712629/gpt-langchain-experimental-agent-allow-dangerous-code | python, visual-studio-code, artificial-intelligence, chatbot | 1,720,199,252 |
se_79347073 | stackoverflow | ARTIFICIAL_INTELLIGENCE | WebSocket Error 403 During Handshake with ElevenLabs API | WebSocket Error 403 During Handshake with ElevenLabs API
I’m working on a conversational AI website, and I’m using the ElevenLabs API for voice generation and conversation handling. However, I’ve run into a problem when trying to establish a WebSocket connection to their API.
Here are the details of the issue:
Termina... | https://stackoverflow.com/questions/79347073/websocket-error-403-during-handshake-with-elevenlabs-api | next.js, nlp, artificial-intelligence, conversational-ai, elevenlabs | 1,736,544,300 |
se_79348718 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Cannot download Llama 3.2 3B model using Unsloth and Hugging Face | Cannot download Llama 3.2 3B model using Unsloth and Hugging Face
I want to locally fine-tune using my own dataset and then save the Llama 3.2-3B model locally too. I have an Anaconda setup and I'm on the base environment, where I can see clearly that unsloth and hugging face are both installed.
However everytime I si... | https://stackoverflow.com/questions/79348718/cannot-download-llama-3-2-3b-model-using-unsloth-and-hugging-face | artificial-intelligence, large-language-model, huggingface, llama, huggingface-hub | 1,736,622,960 |
se_79287870 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do i specify index_name in llama-index MilvusVectorStore | How do i specify index_name in llama-index MilvusVectorStore
I'm working on a python rag project. where I'm using milvus as vector database and using llama-index for setting up the project.
I have done setting up milvus database, wrote code for embedding the documents, in milvus collection i have created a schema and ... | https://stackoverflow.com/questions/79287870/how-do-i-specify-index-name-in-llama-index-milvusvectorstore | artificial-intelligence, llama, llama-index, vector-database, milvus | 1,734,438,546 |
se_79321289 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to show dedicated progress bar in each tab in a Gradio app? | How to show dedicated progress bar in each tab in a Gradio app?
I am developing an image generation Gradio app that uses multiple models like SD3.5, Flux, and others to generate images from a given prompt.
The app has 7 tabs, each corresponding to a specific model. Each tab displays an image generated by its respectiv... | https://stackoverflow.com/questions/79321289/how-to-show-dedicated-progress-bar-in-each-tab-in-a-gradio-app | python, artificial-intelligence, stable-diffusion, gradio, image-generation | 1,735,716,005 |
se_75972369 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AI generation of animated 2D sprites | AI generation of animated 2D sprites
I am developing a 2D top-down view game (more specifically, a Factorio mod rather than a stand-alone game). I need several models of buildings with simple animations indicating that they “do stuff” (here are some examples from the original game: https://cdn.factorio.com/assets/img/... | https://stackoverflow.com/questions/75972369/ai-generation-of-animated-2d-sprites | graphics, artificial-intelligence, sprite | 1,681,067,191 |
se_78907608 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to pass multiple inputs during invoke to a MessageGraph? | How to pass multiple inputs during invoke to a MessageGraph?
We have a MessageGraph for an LLMCompiler implementation and as expected we pass a users's question when running invoke as a list of HumanMessage objects (which are mapped to a default "messages" key and passed to prompt templates), this works fine for simpl... | https://stackoverflow.com/questions/78907608/how-to-pass-multiple-inputs-during-invoke-to-a-messagegraph | machine-learning, artificial-intelligence, langchain, large-language-model, langgraph | 1,724,448,627 |
se_79199510 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to count # of tokens consumed by OpenAI Assistant while streaming the message | How to count # of tokens consumed by OpenAI Assistant while streaming the message
I am using openAI Assistant, I get the streamingUpdate using
streamingUpdate = assistantClient.CreateRunStreaming(thread, assistant);
I could iterate through streamingUpdate and send the response to the client using SignalR api. howeve... | https://stackoverflow.com/questions/79199510/how-to-count-of-tokens-consumed-by-openai-assistant-while-streaming-the-messag | c#, artificial-intelligence, openai-api, azure-openai | 1,731,924,864 |
se_79333476 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why do I plot only one feature when visualizing predictions for a multi-feature regression model? | Why do I plot only one feature when visualizing predictions for a multi-feature regression model?
I am working on a regression task where my feature matrix consists of two features: a linear term and its square (quadratic feature). My model is predicting values correctly, but after numerous attempts I noticed that to ... | https://stackoverflow.com/questions/79333476/why-do-i-plot-only-one-feature-when-visualizing-predictions-for-a-multi-feature | python, artificial-intelligence, linear-regression, logistic-regression | 1,736,176,274 |
se_3756142 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Are Multi-Agent Systems just hype? | Are Multi-Agent Systems just hype?
As a researcher I am curious to hear what people think of Multi-Agent Systems if of course you came across the whole idea. Do you believe there is something more in there than just a hype and another buzzword? Can you see any potential uses in business or everyday computing? Or do yo... | https://stackoverflow.com/questions/3756142/are-multi-agent-systems-just-hype | artificial-intelligence, p2p, distributed-computing | 1,285,023,748 |
se_22273119 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What does the beam size represent in the beam search algorithm? | What does the beam size represent in the beam search algorithm?
I have a question about the beam search algorithm.
Let's say that n = 2 (the number of nodes we are going to expand from every node). So, at the beginning, we only have the root, with 2 nodes that we expand from it. Now, from those two nodes, we expand ... | https://stackoverflow.com/questions/22273119/what-does-the-beam-size-represent-in-the-beam-search-algorithm | algorithm, search, artificial-intelligence, beam-search | 1,394,302,419 |
se_79330782 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to implement Roboflow model api in flutter app? | How to implement Roboflow model api in flutter app?
I am trying to implement RoboFlow model API in my Flutter app to analyze images. I would like to take an image from the user and analyze it using Roboflow model API.
Url, API key, Model API, version everything is correct but something is wrong with input data.
Here y... | https://stackoverflow.com/questions/79330782/how-to-implement-roboflow-model-api-in-flutter-app | flutter, http, machine-learning, artificial-intelligence, roboflow | 1,736,082,911 |
se_50313152 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Back Propagation in Convolutional Neural Networks and how to update filters | Back Propagation in Convolutional Neural Networks and how to update filters
Im learning about Convolutional Neural Networks and right now i'm confused about how to implement it.
I know about regular neural networks and concepts like Gradient Descent and Back Propagation, And i can understand how CNN's how works intui... | https://stackoverflow.com/questions/50313152/back-propagation-in-convolutional-neural-networks-and-how-to-update-filters | machine-learning, neural-network, deep-learning, artificial-intelligence, conv-neural-network | 1,526,190,581 |
se_79328522 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ImportError in Python when using the phi library | ImportError in Python when using the phi library
After running the following code, I encounter the following ImportError. How can I fix it?
from os import getenv
from phi.agent import Agent
Error:
ImportError Traceback (most recent call last)
Cell In[2], line 2
1 from os import g... | https://stackoverflow.com/questions/79328522/importerror-in-python-when-using-the-phi-library | python, artificial-intelligence | 1,735,981,178 |
se_79328081 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Pinecone similarity_search Returning Null | Pinecone similarity_search Returning Null
Im learning to use Pinecone but i'm encountering an issue while performing a similarity_search operation in Pinecone. Despite successfully creating and populating the index, the search always returns null results. Here's a summary of my setup:
This is the whole code, Thank you... | https://stackoverflow.com/questions/79328081/pinecone-similarity-search-returning-null | artificial-intelligence, langchain, pinecone | 1,735,955,424 |
se_79328679 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to add image as an input to a ChatMessage with Microsoft.Extensions.AI | How to add image as an input to a ChatMessage with Microsoft.Extensions.AI
I'm trying to use Microsoft.Extensions.AI to ask a model hosted in Azure OpenAI to describe an image. I've been able to successfully chat with a gpt-4o-mini model, using the following code:
var message = new ChatMessage(ChatRole.User, "Please d... | https://stackoverflow.com/questions/79328679/how-to-add-image-as-an-input-to-a-chatmessage-with-microsoft-extensions-ai | c#, artificial-intelligence, azure-openai | 1,735,986,342 |
se_21971709 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can you discover what features in a dataset are predictive? | How can you discover what features in a dataset are predictive?
I'm working on a machine learning algorithm for the dataset available here.
There are 26 columns of data. Most of it is pointless. How can I effectively and quickly determine what features are interesting - what features tell me one way or another whether... | https://stackoverflow.com/questions/21971709/how-can-you-discover-what-features-in-a-dataset-are-predictive | python, machine-learning, artificial-intelligence, scikit-learn, feature-detection | 1,393,176,529 |
se_79321670 | stackoverflow | ARTIFICIAL_INTELLIGENCE | On Car source components, I can't define 2 initial speed values respectively to vehicles being in or not in emergency state | On Car source components, I can't define 2 initial speed values respectively to vehicles being in or not in emergency state
In AnyLogic I'm making a college project for my course's AI subject. It involves creating a population of an agent that I called "Veiculo" (it's in Portuguese, in English it means "Vehicle").... | https://stackoverflow.com/questions/79321670/on-car-source-components-i-cant-define-2-initial-speed-values-respectively-to | artificial-intelligence, anylogic | 1,735,737,909 |
se_79319737 | stackoverflow | ARTIFICIAL_INTELLIGENCE | LLM Function calling in Spring AI results in error : exc.InvalidFormatException: Cannot deserialize value of type | LLM Function calling in Spring AI results in error : exc.InvalidFormatException: Cannot deserialize value of type
I tried to implement function calling with Spring-AI but I see that method parameters are not passed correctly.
For example I have this function 'routeChatFunction' that takes AgentChatRequest as input cla... | https://stackoverflow.com/questions/79319737/llm-function-calling-in-spring-ai-results-in-error-exc-invalidformatexception | java, spring, artificial-intelligence, large-language-model, spring-ai | 1,735,641,186 |
se_79321016 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Traceback (most recent call last): File "<string>", line 1, in <module> error with download_images(dest, urls=search_images(f'{o} photo')) | Traceback (most recent call last): File "<string>", line 1, in <module> error with download_images(dest, urls=search_images(f'{o} photo'))
I wrote this code, and it was working.
from duckduckgo_search import DDGS
from fastcore.all import *
def search_images(keywords, max_images=200):
... | https://stackoverflow.com/questions/79321016/traceback-most-recent-call-last-file-string-line-1-in-module-error-wi | python, web-scraping, artificial-intelligence, duckduckgo | 1,735,693,751 |
se_76659831 | stackoverflow | ARTIFICIAL_INTELLIGENCE | hugging face pipeline error from langchain PydanticUserError: | hugging face pipeline error from langchain PydanticUserError:
I'm having following error while trying to load the hugging face pipeline from langchain
PydanticUserError: If you use @root_validator with pre=False (the
default) you MUST specify skip_on_failure=True. Note that
@root_validator is deprecated and should be... | https://stackoverflow.com/questions/76659831/hugging-face-pipeline-error-from-langchain-pydanticusererror | database, artificial-intelligence, langchain, large-language-model | 1,689,062,523 |
se_35281004 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to make api.ai agent learn something dynamically? | How to make api.ai agent learn something dynamically?
I am currently using api.ai , to create agent to perform specific tasks, but one question i don't have answer to is , can i make it learn something while chatting , mean that i speak my name is 'John Cena' and she should store it and then whenever i ask her again b... | https://stackoverflow.com/questions/35281004/how-to-make-api-ai-agent-learn-something-dynamically | android, json, nlp, artificial-intelligence, dialogflow-es | 1,454,972,473 |
se_79307360 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Module Not Found Error- Local Streamlit app | Module Not Found Error- Local Streamlit app
I've been working on a project to a create a chatbot like app using langchain and streamlit for UI. but whenever I'm trying to run the app I keep getting this error:
(venv) D:\Gen AI projs\Code Analyzer>python main.py
Starting the AI Code Analyzer...
INFO:root:Starting Stre... | https://stackoverflow.com/questions/79307360/module-not-found-error-local-streamlit-app | python, artificial-intelligence, streamlit, modulenotfounderror | 1,735,121,984 |
se_77932443 | stackoverflow | ARTIFICIAL_INTELLIGENCE | mistralai - AttributeError: 'ChatMessage' object has no attribute 'model_dump' | mistralai - AttributeError: 'ChatMessage' object has no attribute 'model_dump'
I am trying to run a Mistral AI's python client code example shown below.
from mistralai.client import MistralClient
from mistralai.models.chat_completion import ChatMessage
model = "mistral-tiny"
client = MistralClient(ap... | https://stackoverflow.com/questions/77932443/mistralai-attributeerror-chatmessage-object-has-no-attribute-model-dump | python, python-3.x, artificial-intelligence, large-language-model | 1,706,970,181 |
se_78476748 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do I solve the "No such activation function: 'sum'" error in Python NEAT? | How do I solve the "No such activation function: 'sum'" error in Python NEAT?
I was creating a simple game AI using NEAT. However, I discovered an issue where the game window would just open and close as it transitioned from generation 0 to generation 1, and in reality, it kept repeating generation 0... | https://stackoverflow.com/questions/78476748/how-do-i-solve-the-no-such-activation-function-sum-error-in-python-neat | python, function, error-handling, artificial-intelligence, neat | 1,715,675,232 |
se_78686119 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How To get consistent and expected json from Autogen? | How To get consistent and expected json from Autogen?
I'm using multi-agent autogen, where I have multiple critic agents who review writer agent's report. I need to get critic reviews in a specific JSON format, but I'm not getting a consistent and expected JSON as output. How can I get this?
I tried configuring llm co... | https://stackoverflow.com/questions/78686119/how-to-get-consistent-and-expected-json-from-autogen | python, artificial-intelligence, ms-autogen | 1,719,668,355 |
se_79299405 | stackoverflow | ARTIFICIAL_INTELLIGENCE | PDDL check for conditionals | PDDL check for conditionals
I am struggling to understand how PDDL works. With this question I am interested in knowing if the problem is about syntax, edge-cases or just me understanding PDDL wrong. Especially the following: When I check for a conditional with the when clause, does it alter the predicate? In the foll... | https://stackoverflow.com/questions/79299405/pddl-check-for-conditionals | artificial-intelligence, agent, pddl | 1,734,784,065 |
se_52799472 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to make an AI bot of Natural Language Processing? | How to make an AI bot of Natural Language Processing?
I want to make AI bot which can understand only 4 words "Up", "Down", "Left", "Right".
as my friend make a python script which executes some task by the voice like to open youtube just say "Youtube" and Chrome browser will open with youtube.com URL. But the system ... | https://stackoverflow.com/questions/52799472/how-to-make-an-ai-bot-of-natural-language-processing | python, machine-learning, nlp, artificial-intelligence, opennlp | 1,539,491,401 |
se_57392049 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to build an AI system which learns from corpus and answers to the user whenever they ask anything related to that corpus | How to build an AI system which learns from corpus and answers to the user whenever they ask anything related to that corpus
I am planning to build an AI system that learns from the corpus (text file) and needs to answer to question for user like chatbot to be short chatbot without any predefined data.
Until now I web... | https://stackoverflow.com/questions/57392049/how-to-build-an-ai-system-which-learns-from-corpus-and-answers-to-the-user-whene | python, artificial-intelligence, chatbot | 1,565,172,852 |
se_7146225 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to create a reasonable AI? | How to create a reasonable AI?
I'm creating a logic game based on Fox and Hounds game. The player plays the fox and AI plays the hounds. (as far as I can see) I managed to make the AI perfect, so it never loses. Leaving it as such would not be much fun for human players.
Now, I have to dumb-down the AI so human can w... | https://stackoverflow.com/questions/7146225/how-to-create-a-reasonable-ai | artificial-intelligence | 1,314,009,504 |
se_35556433 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Any tutorial for developing spoken dialogue system in prolog? | Any tutorial for developing spoken dialogue system in prolog?
I would like to implement a human-machine spoken dialogue system in a context of bar, which takes as input a text phrase from the user (a request for a given product: chips, cola, water, coffee, etc.) and return as output the corresponding response (Beyond ... | https://stackoverflow.com/questions/35556433/any-tutorial-for-developing-spoken-dialogue-system-in-prolog | prolog, nlp, artificial-intelligence | 1,456,152,027 |
se_79279472 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Contrastive Loss from Scratch | Contrastive Loss from Scratch
I am trying to implement/learn how to implement contrastive loss. Currently my gradients are exploding into infinity and I think I must have misimplemented something. I was wondering if someone could take a look at my loss function and tell if they see an error
class ContrastiveLoss(nn.Mo... | https://stackoverflow.com/questions/79279472/contrastive-loss-from-scratch | deep-learning, pytorch, artificial-intelligence, loss-function, self-supervised-learning | 1,734,120,984 |
se_78424761 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Crew ai, Local LLM connection issue | Crew ai, Local LLM connection issue
I am trying to connect ollama Llama2 with crew ai, and i am getting "openai.NotFoundError: 404 page not found"
in .env i have below values
OPENAI_API_BASE=http://localhost:11434/v1 OPENAI_MODEL_NAME=llama2 OPENAI_API_KEY=NA
in main file, i have below line to connect
from langchain_... | https://stackoverflow.com/questions/78424761/crew-ai-local-llm-connection-issue | python, artificial-intelligence, langchain, large-language-model, ollama | 1,714,740,138 |
se_79284559 | stackoverflow | ARTIFICIAL_INTELLIGENCE | No module named 'ppaquette_gym_doom' | No module named 'ppaquette_gym_doom'
i use spyder
i tried to install ppaquette_gym_doom but failed
i tried to install doom-py and failed
Failed building wheel for doom-py
this is error secntence but i can't understand what it means
i also tried below
import gym
import gym_pull
gym_pull.pull('github.com/ppaquet... | https://stackoverflow.com/questions/79284559/no-module-named-ppaquette-gym-doom | python, artificial-intelligence | 1,734,349,522 |
se_77630013 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to run any quantized GGUF model on CPU for local inference? | How to run any quantized GGUF model on CPU for local inference?
In ctransformers library, I can only load around a dozen supported models. How can I run local inference on CPU (not just on GPU) from any open-source LLM quantized in the GGUF format (e.g. Llama 3, Mistral, Zephyr, i.e. ones unsupported in ctransformers)... | https://stackoverflow.com/questions/77630013/how-to-run-any-quantized-gguf-model-on-cpu-for-local-inference | python, artificial-intelligence, cpu, ctransformers | 1,702,091,931 |
se_79251297 | stackoverflow | ARTIFICIAL_INTELLIGENCE | DocumentExtractionSkill doesn't extract text from blob data | DocumentExtractionSkill doesn't extract text from blob data
I have a DB
TABLE FileStorage (
ID INT IDENTITY(1,1) PRIMARY KEY,
FileName NVARCHAR(255) NOT NULL, -- Name of the file
FileData VARBINARY(MAX) NOT NULL, -- Binary data of the file PDF
UploadDate DATETIME DEFAULT GETDATE() -- Optiona... | https://stackoverflow.com/questions/79251297/documentextractionskill-doesnt-extract-text-from-blob-data | azure, artificial-intelligence, azure-cognitive-services | 1,733,317,896 |
se_77505030 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI API error: "You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0" | OpenAI API error: "You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0"
I am currently working on a chatbot, and as I am using Windows 11 it does not let me migrate to newer OpenAI library or downgrade it. Could I replace the ChatCompletion function with something e... | https://stackoverflow.com/questions/77505030/openai-api-error-you-tried-to-access-openai-chatcompletion-but-this-is-no-lon | python, pip, artificial-intelligence, openai-api, chatgpt-api | 1,700,262,548 |
se_76765564 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Google Colab Free Tier: Code Stops at 51,000 Examples While Fine-tuning LLAMA 2 with Custom Dataset | Google Colab Free Tier: Code Stops at 51,000 Examples While Fine-tuning LLAMA 2 with Custom Dataset
I'm encountering an issue while fine-tuning Llama 2 on Google Colab using a custom dataset. The code halts exactly at 51,000 examples during the training process, even though my dataset contains 61,609 examples. The str... | https://stackoverflow.com/questions/76765564/google-colab-free-tier-code-stops-at-51-000-examples-while-fine-tuning-llama-2 | python, machine-learning, artificial-intelligence, google-colaboratory, fine-tuning | 1,690,309,500 |
se_79264373 | stackoverflow | ARTIFICIAL_INTELLIGENCE | pins controller uploading duplicates of image rails | pins controller uploading duplicates of image rails
I'm stuck uploading 2 copies of each image
i guess im gong to add a way to remove sepearte images but for now how do i stop duplicates?
some help getting through the double vision would help. im almost sure its in the controller
pins controller
class PinsController <... | https://stackoverflow.com/questions/79264373/pins-controller-uploading-duplicates-of-image-rails | ruby-on-rails, ruby, artificial-intelligence, openai-api | 1,733,735,000 |
se_4840706 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AI program to generate paragraph pattern | AI program to generate paragraph pattern
Is there any software or service or AI program who can rebuild an English paragraph using different set of vocabulary, grammar rules etc.
I mean to say, if the source paragraph is
“Gwalior is a good tourist place near
to Jhansi. Jhansi is very famous due
their queen Ra... | https://stackoverflow.com/questions/4840706/ai-program-to-generate-paragraph-pattern | artificial-intelligence, design-patterns | 1,296,353,164 |
se_79256501 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Azure AI Foundry deployed promptflow providing different responses in compute session chat and endpoint API call | Azure AI Foundry deployed promptflow providing different responses in compute session chat and endpoint API call
I'm trying to make a customer support chatbot using Azure AI Studio/Foundry. I created a promptflow using the chatplayground and deployed it. When testing out the model in the chat function of the promptflo... | https://stackoverflow.com/questions/79256501/azure-ai-foundry-deployed-promptflow-providing-different-responses-in-compute-se | c#, azure, artificial-intelligence | 1,733,441,533 |
se_78794834 | stackoverflow | ARTIFICIAL_INTELLIGENCE | My autogenstudio userproxy excute code is successful but without any output | My autogenstudio userproxy excute code is successful but without any output
I have created an autonomous workflow with user proxy agent and my assistant agent.
For my assistant agent I provide a skill, and in the past it works. However recently my output from my user proxy agent is blank, even in the console the execu... | https://stackoverflow.com/questions/78794834/my-autogenstudio-userproxy-excute-code-is-successful-but-without-any-output | python, artificial-intelligence, ms-autogen | 1,721,930,425 |
se_77815953 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Autogen connecting to config file errors | Autogen connecting to config file errors
Errors connecting to config files for models using autogen, seems to be dependent on the python code I am executing.
My goal is to have one config file that will work for any autogen project.
I'm able to get execute a basic conversation between assistant and user_proxy a but ad... | https://stackoverflow.com/questions/77815953/autogen-connecting-to-config-file-errors | python, configuration, artificial-intelligence, openai-api, ms-autogen | 1,705,251,996 |
se_77559884 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I am getting an error while trying to run autogen using a local LLM | I am getting an error while trying to run autogen using a local LLM
Below is the Code I am running. Note that I am using LM Studio (LLM: Llama 2) and I have double checked to make sure that the server number is correct.
from autogen import AssistantAgent, UserProxyAgent
config_list = [
{
"api_type": "open... | https://stackoverflow.com/questions/77559884/i-am-getting-an-error-while-trying-to-run-autogen-using-a-local-llm | python, artificial-intelligence, typeerror, large-language-model, ms-autogen | 1,701,118,439 |
se_77422921 | stackoverflow | ARTIFICIAL_INTELLIGENCE | autogen throws errors in the output | autogen throws errors in the output
Unfortunately, I somehow volunteered for the university to deal with autogen. I also understand the sample codes well and now wanted to develop my own CoLab book Autotgen environment. However, when recreating the examples, I always get thousands of error messages in the output.
Can ... | https://stackoverflow.com/questions/77422921/autogen-throws-errors-in-the-output | python, artificial-intelligence, openai-api, ms-autogen | 1,699,115,632 |
se_77399642 | stackoverflow | ARTIFICIAL_INTELLIGENCE | autogen forward input to another agent (register_reply??) | autogen forward input to another agent (register_reply??)
I'm having a scenario where I need to develop a solution which the one agent will comeup with a plan and then goes a review cycle with the user, before forward it into a group of other agents.
I have my human_input_mode set to ALWAYS on the user_proxy but not s... | https://stackoverflow.com/questions/77399642/autogen-forward-input-to-another-agent-register-reply | python, artificial-intelligence, multi-agent, ms-autogen | 1,698,796,355 |
se_77303616 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Autogen tasks fail without pip; pip3 works but pip doesn't | Autogen tasks fail without pip; pip3 works but pip doesn't
I'm using Python 3.11 to install and use Autogen. When running, Autogen writes and executes code without human input and (supposedly) can debug errors and rewrite code to complete the task you assign. However, mine keeps getting errors and quits the proces... | https://stackoverflow.com/questions/77303616/autogen-tasks-fail-without-pip-pip3-works-but-pip-doesnt | python, pip, artificial-intelligence, ms-autogen | 1,697,474,281 |
se_77902326 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AutoGen 2.0 Where are my workflows saved? | AutoGen 2.0 Where are my workflows saved?
I'm working in windows, with Microconda and Microsoft AutoGen 2.0. I got AutoGen up and running, and have started creating skills.
I want to understand where my work (skills, agents, workflows) is stored, so that I can ensure it's backed up, etc. so I don't lose it.
And along... | https://stackoverflow.com/questions/77902326/autogen-2-0-where-are-my-workflows-saved | python, artificial-intelligence, ms-autogen | 1,706,558,576 |
se_77915597 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Need help in turn off docker in 'Autogen AutoBuilder" | Need help in turn off docker in 'Autogen AutoBuilder"
I am new and struggling to turn off Docker. I like to either set 'use_docker': false or set up environment variable. Either option will work. Thanks for your help. The screenshot has been enclosed. | https://stackoverflow.com/questions/77915597/need-help-in-turn-off-docker-in-autogen-autobuilder | python, docker, artificial-intelligence, ms-autogen | 1,706,724,863 |
se_78025327 | stackoverflow | ARTIFICIAL_INTELLIGENCE | getting error while importing agents, task, process and crew from crewai | getting error while importing agents, task, process and crew from crewai
i am getting error , while importing agents, task, process and crew from crewai
error i am getting - "TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' "
"
code - from crewai import agents , process , crew, Task
error - TypeErro... | https://stackoverflow.com/questions/78025327/getting-error-while-importing-agents-task-process-and-crew-from-crewai | python, artificial-intelligence, openai-api, google-generativeai, ms-autogen | 1,708,412,634 |
se_78387721 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to scope autogen tool to working dir? | How to scope autogen tool to working dir?
I am playing with AutoGen and I've added tools to read and write text files (mainly because don't want to waste resource)
My agent has working dir
executor = autogen.UserProxyAgent(
name="executor",
system_message="Executor. Execute the code written by the Engineer and... | https://stackoverflow.com/questions/78387721/how-to-scope-autogen-tool-to-working-dir | python, artificial-intelligence, ms-autogen | 1,714,091,501 |
se_78649446 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AutoGen GroupChat error code (openai.BadRequestError: Error code: 400) | AutoGen GroupChat error code (openai.BadRequestError: Error code: 400)
I'm pretty new to using AutoGen so I don't know for sure if this is a simple problem to fix but I created two simple agents with the user_proxy to communicate with each other through the "GroupChat" function. However, after the first response from ... | https://stackoverflow.com/questions/78649446/autogen-groupchat-error-code-openai-badrequesterror-error-code-400 | python, artificial-intelligence, openai-api, chatgpt-api, ms-autogen | 1,718,914,855 |
se_78878743 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I am not able to pick autogen completely in linux machine, does there any issue with linux in terms of auto gen | I am not able to pick autogen completely in linux machine, does there any issue with linux in terms of auto gen
when i am trying to install autogen using
pip install pyautogen
When I am trying to import:
from autogen import ConversableAgent
Then I am getting error:
ImportError: cannot import name 'ConversableAgent' fr... | https://stackoverflow.com/questions/78878743/i-am-not-able-to-pick-autogen-completely-in-linux-machine-does-there-any-issue | python, linux, artificial-intelligence, importerror, ms-autogen | 1,723,804,625 |
se_79165226 | stackoverflow | ARTIFICIAL_INTELLIGENCE | "openai.BadRequestError: Invalid role" error while using Ollama + LiteLLM + Autogen | "openai.BadRequestError: Invalid role" error while using Ollama + LiteLLM + Autogen
Introduction
I am running an ollama server with LiteLLM proxy. I aim to design a group chat using Autogen. The designated agents are:
User_Proxy: ask question
SQL_Generator: generate SQL
SQL_Runner: run SQL (tool calling)
Re... | https://stackoverflow.com/questions/79165226/openai-badrequesterror-invalid-role-error-while-using-ollama-litellm-auto | artificial-intelligence, openai-api, ollama, ms-autogen | 1,730,960,514 |
se_79123038 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Kernel restarting issue with ChromaDB code | Kernel restarting issue with ChromaDB code
I'm working with ChromaDB, and my kernel keeps restarting when I try to add documents to a collection. Below is the code that is causing the problem:
collection.add(
documents=[
"This document is about New York",
"This document os about Tunisia"
],
... | https://stackoverflow.com/questions/79123038/kernel-restarting-issue-with-chromadb-code | artificial-intelligence, chromadb | 1,729,790,241 |
se_78536168 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why Tensorflow.js based Weather Prediction Model is unable to predict correct weather | Why Tensorflow.js based Weather Prediction Model is unable to predict correct weather
I am learning tensorflow.js and this is perhaps the first full program I am trying to write. However I feel something is wrong. My model is not able to predict right Weather and always predicting 'Haze' no matter how I train it. Foll... | https://stackoverflow.com/questions/78536168/why-tensorflow-js-based-weather-prediction-model-is-unable-to-predict-correct-we | tensorflow, machine-learning, artificial-intelligence, linear-regression, tensorflow.js | 1,716,748,569 |
se_79241894 | stackoverflow | ARTIFICIAL_INTELLIGENCE | timesfm module - TypeError: TimesFmBase.__init__() got an unexpected keyword argument 'context_len' | timesfm module - TypeError: TimesFmBase.__init__() got an unexpected keyword argument 'context_len'
import pandas as pd
import numpy as np
import timesfm as tf
df = pd.read_csv("file.csv", parse_dates=["Datetime"])
df = df.set_index("Datetime")
tfm = tf.TimesFm(
context_len=128,
horizon_len=5,
... | https://stackoverflow.com/questions/79241894/timesfm-module-typeerror-timesfmbase-init-got-an-unexpected-keyword-arg | python, artificial-intelligence | 1,733,066,882 |
se_79233741 | stackoverflow | ARTIFICIAL_INTELLIGENCE | profiling of Llama 3.1 8B model on AI Accelerator | profiling of Llama 3.1 8B model on AI Accelerator
I have the profiling results of the inference of Llama 3.1 8b model by Meta. I deployed the model on the AI Accelerator. I managed to create a memory trace of the whole model from the Host to the device. I managed to map the each layer and each segment of the model wi... | https://stackoverflow.com/questions/79233741/profiling-of-llama-3-1-8b-model-on-ai-accelerator | gpu, artificial-intelligence, profiling, large-language-model, transformer-model | 1,732,794,148 |
se_76561073 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ConversationalRetrievalChain vs LLMChain | ConversationalRetrievalChain vs LLMChain
I developed a script that worked just fine, as follows:
def get_response_from_query(db, query, k=4):
docs = db.similarity_search(query, k=k)
docs_page_content = " ".join([d.page_content for d in docs])
chat = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.2)... | https://stackoverflow.com/questions/76561073/conversationalretrievalchain-vs-llmchain | python, artificial-intelligence, openai-api, langchain | 1,687,828,851 |
se_18758615 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I learn a reward function? | How can I learn a reward function?
I'm am trying to go a bit outside the box for developing an AI for a game similar to othello.
I'm looking at a number of different techniques and algorithms to determine optimal moves, such as Negascout and MTD(f). However they all require a good evaluation function.
I've come up wit... | https://stackoverflow.com/questions/18758615/how-can-i-learn-a-reward-function | machine-learning, artificial-intelligence | 1,378,972,580 |
se_79237584 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Issue with Llama 2-7B Model Producing Output Limited to 511 Tokens | Issue with Llama 2-7B Model Producing Output Limited to 511 Tokens
I am facing an issue with the Llama 2-7B model where the output is consistently limited to only 511 tokens, even though the model should theoretically be capable of producing outputs up to a maximum of 4096 tokens.
I’ve tried setting the max_tokens par... | https://stackoverflow.com/questions/79237584/issue-with-llama-2-7b-model-producing-output-limited-to-511-tokens | python, artificial-intelligence, token, llama | 1,732,893,702 |
se_79237941 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why am I not able to create the react agent using create_react_agent()? | Why am I not able to create the react agent using create_react_agent()?
What am I doing wrong here ?
import streamlit as st
from langchain_groq import ChatGroq
from langchain_community.tools import DuckDuckGoSearchRun
from langchain.agents import AgentExecutor, create_react_agent
from langchain_community.callbacks... | https://stackoverflow.com/questions/79237941/why-am-i-not-able-to-create-the-react-agent-using-create-react-agent | python, artificial-intelligence, streamlit, langchain | 1,732,901,994 |
se_77512708 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Blocks-World Problem in Prolog keeps oscillating between the same two states | Blocks-World Problem in Prolog keeps oscillating between the same two states
I am trying to implement a blocks world program in prolog. Blocks world is a well-known problem in AI, and in and of itself, is rather simple. This is my current code:
% Define the blocks in your world
blocks([a, b, c, d, e, f]).
% A block X... | https://stackoverflow.com/questions/77512708/blocks-world-problem-in-prolog-keeps-oscillating-between-the-same-two-states | prolog, artificial-intelligence, depth-first-search, planning | 1,700,432,239 |
se_78378753 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Exception encountered: Unrecognized keyword arguments passed to Conv2D: {'batch_input_shape': [None, 135, 135, 3]} | Exception encountered: Unrecognized keyword arguments passed to Conv2D: {'batch_input_shape': [None, 135, 135, 3]}
I have some models that were trained with an older version of Tensorflow, Keras and Python. Now I updated to Tensorflow 2.16.1, Keras 3.1.1 and Python 3.12.2. Now I cannot even load these models t... | https://stackoverflow.com/questions/78378753/exception-encountered-unrecognized-keyword-arguments-passed-to-conv2d-batch | tensorflow, artificial-intelligence, tf.keras, image-classification, python-3.12 | 1,713,964,673 |
se_74796014 | stackoverflow | ARTIFICIAL_INTELLIGENCE | chatbot for my customer service representatives | chatbot for my customer service representatives
I am interested in building a chatbot for my customer service representatives. A type of chat where they can ask technical questions and the chat will answer them according to the data I put into it. The data is manuals with information on how to perform technical operat... | https://stackoverflow.com/questions/74796014/chatbot-for-my-customer-service-representatives | javascript, node.js, artificial-intelligence, full-text-search, chatbot | 1,671,009,825 |
se_45382763 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Q-learning with a state-action-state reward structure and a Q-matrix with states as rows and actions as columns | Q-learning with a state-action-state reward structure and a Q-matrix with states as rows and actions as columns
I have set up a Q-learning problem in R, and would like some help with the theoretical correctness of my approach in framing the problem.
Problem structure
For this problem, the environment consists of 10 po... | https://stackoverflow.com/questions/45382763/q-learning-with-a-state-action-state-reward-structure-and-a-q-matrix-with-states | algorithm, machine-learning, artificial-intelligence, reinforcement-learning, q-learning | 1,501,277,782 |
se_53464125 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Greedy search algorithm | Greedy search algorithm
Currently, I am a new to the Artificial Intelligence. I have a problem with the greedy search algorithm. I saw one question in a tutorial but can't understand how to answer it. Please help me. Any help much appreciated.
Consider the given figure 1. The values in each node represent the
heurist... | https://stackoverflow.com/questions/53464125/greedy-search-algorithm | artificial-intelligence | 1,543,112,321 |
se_78681837 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Goal-Oriented Action Planning Regression Logic Confusion | Goal-Oriented Action Planning Regression Logic Confusion
The image below shows the original example of GOAP regressive search by Dr. Jeff Orkin. It is explained that the planner searches regressively the space of actions for a sequence that will take the character from his starting state to his goal state. In each ste... | https://stackoverflow.com/questions/78681837/goal-oriented-action-planning-regression-logic-confusion | algorithm, search, regression, artificial-intelligence, planning | 1,719,569,006 |
se_78933726 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Firebase Genkit: how to set system / user /assistant chat history? | Firebase Genkit: how to set system / user /assistant chat history?
I am trying to use Firebase Genkit.
I see here that I can use:
import { generate } from '@genkit-ai/ai';
generate({
model: 'googleai/gemini-1.5-flash-latest',
prompt: 'You are a helpful AI assistant named Walt. Say hello.',
});
Great, it works.
N... | https://stackoverflow.com/questions/78933726/firebase-genkit-how-to-set-system-user-assistant-chat-history | firebase, google-cloud-platform, artificial-intelligence, google-gemini, firebase-genkit | 1,725,051,724 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.