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_79221167
stackoverflow
ARTIFICIAL_INTELLIGENCE
blip2 type mismatch exception
blip2 type mismatch exception I'm trying to create an image captioning model using hugging face blip2 model on colab. My code was working fine till last week (Nov 8) but it gives me an exception now. To install packages I use the following command: !pip install -q git+https://github.com/huggingface/peft.git transforme...
https://stackoverflow.com/questions/79221167/blip2-type-mismatch-exception
python, artificial-intelligence, huggingface-transformers, large-language-model
1,732,485,923
se_79212687
stackoverflow
ARTIFICIAL_INTELLIGENCE
in testing dataset using dataloader , should we set shuffle=true or it doesn't matter?
in testing dataset using dataloader , should we set shuffle=true or it doesn't matter? I have a custom dataset (images of pizza,sushi and steak). I'm using torch DataLoader for it , now when writing the test dataloader custom should we set shuffle=true or it just doesn't matter?? I haven't seen difference yet , bu...
https://stackoverflow.com/questions/79212687/in-testing-dataset-using-dataloader-should-we-set-shuffle-true-or-it-doesnt-m
machine-learning, deep-learning, pytorch, artificial-intelligence, pytorch-dataloader
1,732,217,610
se_79145652
stackoverflow
ARTIFICIAL_INTELLIGENCE
AWS Bedrock Claude Sonnet 3.5 with image and system prompt
AWS Bedrock Claude Sonnet 3.5 with image and system prompt I need to invoke a Bedrock Claude Sonnet 3.5 model with: System prompt An Image that I have in .JPEG locally in the disk a context in text a query Im getting an error in JSON payload with the image. A client error occured: messages.0.content.1.image.source: ...
https://stackoverflow.com/questions/79145652/aws-bedrock-claude-sonnet-3-5-with-image-and-system-prompt
python, artificial-intelligence, amazon-bedrock, claude, sonnet
1,730,393,846
se_78367740
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to use OpenAI Assistants with Openrouter
How to use OpenAI Assistants with Openrouter I recently came across a platform called apiepie.ai that offers GPT-4 access through something called openrouter. I would like to know if someone has used assistants with this option like with this code, because in the documentation there's only the basic send message code ...
https://stackoverflow.com/questions/78367740/how-to-use-openai-assistants-with-openrouter
javascript, artificial-intelligence, openai-api, openrouteservice, apipie
1,713,804,296
se_13148934
stackoverflow
ARTIFICIAL_INTELLIGENCE
Unbounded increase in Q-Value, consequence of recurrent reward after repeating the same action in Q-Learning
Unbounded increase in Q-Value, consequence of recurrent reward after repeating the same action in Q-Learning I'm in the process of development of a simple Q-Learning implementation over a trivial application, but there's something that keeps puzzling me. Let's consider the standard formulation of Q-Learning Q(S, A) ...
https://stackoverflow.com/questions/13148934/unbounded-increase-in-q-value-consequence-of-recurrent-reward-after-repeating-t
machine-learning, artificial-intelligence, reinforcement-learning, q-learning
1,351,638,692
se_60077386
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to use my neural net properly with dl4j?
How to use my neural net properly with dl4j? I implemented a feed forward model and a recurrent model with deeplearning4j to detect anomalies in a 1D signal. Maybe I'm missing an abstraction but I thought I could solve this problem the following way: Preprocess the data. I have 5 different failure categories and have...
https://stackoverflow.com/questions/60077386/how-to-use-my-neural-net-properly-with-dl4j
java, deep-learning, artificial-intelligence, deeplearning4j
1,580,910,857
se_53690171
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to list possible successor states for each state in OpenAI gym? (strictly for normal MDPs)
How to list possible successor states for each state in OpenAI gym? (strictly for normal MDPs) Is there a way to iterate through each state, force the environment to go to that state, and then take a step and then use the "info" dictionary returned to see what are all the possible successor states? Or an even easier ...
https://stackoverflow.com/questions/53690171/how-to-list-possible-successor-states-for-each-state-in-openai-gym-strictly-fo
python, machine-learning, artificial-intelligence, reinforcement-learning, openai-gym
1,544,339,295
se_79213090
stackoverflow
ARTIFICIAL_INTELLIGENCE
Memory bottleneck when tokenizing large datasets with Hugging Face’s AutoTokenizer
Memory bottleneck when tokenizing large datasets with Hugging Face’s AutoTokenizer I’m encountering a memory bottleneck when tokenizing large datasets with Hugging Face’s AutoTokenizer for LLM pretraining. Despite using batch_encode_plus with truncation, the process intermittently crashes. Are there strategies or tool...
https://stackoverflow.com/questions/79213090/memory-bottleneck-when-tokenizing-large-datasets-with-hugging-face-s-autotokeniz
python, artificial-intelligence, large-language-model
1,732,228,038
se_79211067
stackoverflow
ARTIFICIAL_INTELLIGENCE
Django devserver load once
Django devserver load once I am trying to develop a django application it use paddelocr take sometime to initiate. so when ever I am trying to change something and test it I have to wait 5 sec for the paddleocr to initiate again. Is there a way to load the model only once when i start the dev server and not everytime ...
https://stackoverflow.com/questions/79211067/django-devserver-load-once
python, django, artificial-intelligence, ocr, django-dev-server
1,732,190,707
se_76519270
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error converting response to stream in Vercel AI SDK
Error converting response to stream in Vercel AI SDK I'm trying to build a really simple chatbot with vercel ai. I'm using this tutorial: https://www.youtube.com/watch?v=VsyIya5PWb0 (github source code: https://github.com/GuiBibeau/exploring-vercel-ai) I think the issue is in the route.ts or page.tsx, but I'm not comp...
https://stackoverflow.com/questions/76519270/error-converting-response-to-stream-in-vercel-ai-sdk
typescript, artificial-intelligence, vercel, openai-api
1,687,309,038
se_78473568
stackoverflow
ARTIFICIAL_INTELLIGENCE
Pinecone serverless from existing index
Pinecone serverless from existing index from flask import Flask, render_template, jsonify, request from src.helper import download_hugging_face_embeddings # from langchain.vectorstores import Pinecone import pinecone from langchain.prompts import PromptTemplate from langchain.llms import CTransformers from langchain.c...
https://stackoverflow.com/questions/78473568/pinecone-serverless-from-existing-index
artificial-intelligence, chatbot, large-language-model, pinecone
1,715,617,014
se_78316397
stackoverflow
ARTIFICIAL_INTELLIGENCE
Access PDF Files using the Gemini API
Access PDF Files using the Gemini API I am trying to extract information from a pdf using the Gemini API (1.5-pro). Right now it seems like the API can only access Text, Audio Files or Images. Is there any way for it to access PDF files (e.g. via Vertex AI or Google Drive uploads)? The current documentations are quite...
https://stackoverflow.com/questions/78316397/access-pdf-files-using-the-gemini-api
artificial-intelligence, google-gemini
1,712,926,171
se_79205965
stackoverflow
ARTIFICIAL_INTELLIGENCE
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:3 and cuda:0
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:3 and cuda:0 I want to fine-tune Llama 3.1 large language model with a new datasets, but when I try to use multiple GPUs to train the model, I kept getting the following error message: RuntimeError: Expected all tensors t...
https://stackoverflow.com/questions/79205965/runtimeerror-expected-all-tensors-to-be-on-the-same-device-but-found-at-least
pytorch, gpu, artificial-intelligence, large-language-model, llama
1,732,082,363
se_43880116
stackoverflow
ARTIFICIAL_INTELLIGENCE
Deep learning for inferences in sequences
Deep learning for inferences in sequences I want to use deep learning techniques to perform better inference tasks than Hidden Markov Models (which is a shallow model)? I was wondering what is the state-of-the art deep learning model to replace Hidden Markov Models (HMM)? The set-up is semi-supervised. The training da...
https://stackoverflow.com/questions/43880116/deep-learning-for-inferences-in-sequences
machine-learning, artificial-intelligence, deep-learning, hidden-markov-models, unsupervised-learning
1,494,365,133
se_6091772
stackoverflow
ARTIFICIAL_INTELLIGENCE
Forward chaining and Backward chaining in java
Forward chaining and Backward chaining in java What will be the best approach to implement forward chaining and backward chaining for reasoning process in java? We have been given Horn-form knowledge base which has set of statements. I have tried to search on internet but I was unable to find any description regardi...
https://stackoverflow.com/questions/6091772/forward-chaining-and-backward-chaining-in-java
java, algorithm, artificial-intelligence, inference, reasoning
1,306,110,735
se_7389614
stackoverflow
ARTIFICIAL_INTELLIGENCE
Tron lightcycles AI in Prolog
Tron lightcycles AI in Prolog I have the problem to write the AI to game(like tron lightcycles). I write all the graphics and movements on C using ncurses. Now i need to write the bot's ai on the prolog. I'm using swi prolog. I save the current game field(all matrix), current human position and current bot position(l...
https://stackoverflow.com/questions/7389614/tron-lightcycles-ai-in-prolog
algorithm, prolog, artificial-intelligence, minmax
1,315,838,429
se_79196969
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I use my own strategy to test by backtrader?
How can I use my own strategy to test by backtrader? I try to backtest my strategy of trading that is named "AI reversal". Light-weight implementation is available in strategies and I checked the document of backtrader to be right. But everytime I run it, it's just showing the data and not my buy or sell or any of por...
https://stackoverflow.com/questions/79196969/how-can-i-use-my-own-strategy-to-test-by-backtrader
python, artificial-intelligence, trading, back-testing, backtrader
1,731,838,881
se_79192313
stackoverflow
ARTIFICIAL_INTELLIGENCE
CrewAI - KeyError: 'key_name' When Running the Crew
CrewAI - KeyError: 'key_name' When Running the Crew I’m following the CrewAI Getting Started Guide and running into a KeyError: 'key_name' when executing the crewai run command in the root of my project directory. (ai-crew) userk@mycelium:~/development/git/vanto_ai_agents_cornerstone/crewai/latest_ai_developme...
https://stackoverflow.com/questions/79192313/crewai-keyerror-key-name-when-running-the-crew
python, ubuntu, artificial-intelligence, crewai
1,731,672,469
se_78254372
stackoverflow
ARTIFICIAL_INTELLIGENCE
colab-error: subprocess-exited-with-error
colab-error: subprocess-exited-with-error !pip install ecco This error originates from a subprocess, and is likely not a problem with pip. Downloading scikit-learn-0.23.2.tar.gz (7.2 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.2/7.2 MB 39.6 MB/s eta 0:00:00 error: subprocess-exited-with-error × pip subprocess to in...
https://stackoverflow.com/questions/78254372/colab-error-subprocess-exited-with-error
python, deep-learning, artificial-intelligence, google-colaboratory
1,711,959,840
se_865329
stackoverflow
ARTIFICIAL_INTELLIGENCE
What are techniques and practices on measuring data quality?
What are techniques and practices on measuring data quality? If I have a large set of data that describes physical 'things', how could I go about measuring how well that data fits the 'things' that it is supposed to represent? An example would be if I have a crate holding 12 widgets, and I know each widget weighs 1 lb...
https://stackoverflow.com/questions/865329/what-are-techniques-and-practices-on-measuring-data-quality
algorithm, artificial-intelligence, data-quality
1,242,330,523
se_78437376
stackoverflow
ARTIFICIAL_INTELLIGENCE
run `!ollama run llama3` in colab raise err "Error: could not connect to ollama app, is it running?"
run `!ollama run llama3` in colab raise err "Error: could not connect to ollama app, is it running?" I use following code !apt install pciutils -y !curl -fsSL https://ollama.com/install.sh | sh !ollama run llama3 in !ollama run llama3 code cell, it raise err "Error: could not connect to ollama app, is it ru...
https://stackoverflow.com/questions/78437376/run-ollama-run-llama3-in-colab-raise-err-error-could-not-connect-to-ollama
artificial-intelligence, google-colaboratory, large-language-model, llama
1,715,006,472
se_78339960
stackoverflow
ARTIFICIAL_INTELLIGENCE
Keras tokenizer not appearing in import
Keras tokenizer not appearing in import I'm trying to generate captions using a model I trained (.keras) and I'm following this instructions: Link, I'm not following directly, I created and trained the model using Keras Image Captioning code example and saved using a function that GPT4 gave and it's working fine on th...
https://stackoverflow.com/questions/78339960/keras-tokenizer-not-appearing-in-import
keras, import, artificial-intelligence, tokenize
1,713,346,750
se_78705977
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to use LLama3 as copilot hosting on other device?
How to use LLama3 as copilot hosting on other device? I read about codegpt, it allows me to use every AI model in the same way as copilot is being used. I know I can use LLama3 there, but is there an option to place Llama3 on one device, and connect to that device with something like codegpt and ask questions? I want ...
https://stackoverflow.com/questions/78705977/how-to-use-llama3-as-copilot-hosting-on-other-device
artificial-intelligence, llama
1,720,082,507
se_79181784
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to optimize the prompt and make it a single prompt to reduce the api request
How to optimize the prompt and make it a single prompt to reduce the api request I am using a multiple prompts to fetch the answer from the openai gpt 4 model. How can I optimize it to make it a single APi request instead of hitting the API multiple times static async Task ProcessAndStorePrompts(IConfiguration configu...
https://stackoverflow.com/questions/79181784/how-to-optimize-the-prompt-and-make-it-a-single-prompt-to-reduce-the-api-request
c#, artificial-intelligence, openai-api, gpt-4
1,731,425,638
se_79163408
stackoverflow
ARTIFICIAL_INTELLIGENCE
The rule for opening empty cells in the game Minesweeper in Prolog does not work
The rule for opening empty cells in the game Minesweeper in Prolog does not work I have developed a minesweeper game in Prolog language. I am a student and this is my project on the subject of AI. I created a knowledge base, and the rules by which the game should be played. The rule for opening cells displays unnecess...
https://stackoverflow.com/questions/79163408/the-rule-for-opening-empty-cells-in-the-game-minesweeper-in-prolog-does-not-work
prolog, artificial-intelligence, game-development, minesweeper
1,730,909,837
se_58037565
stackoverflow
ARTIFICIAL_INTELLIGENCE
what could be another environment? AI learning
what could be another environment? AI learning I am trying to set up my NVIDIA GPU CUDA development environment. I have Anaconda installed, when in console, I can see a (base) in front of my console. I remember that I have another environment-like thing even before the (base), and it looks like: (env) (base) myname...
https://stackoverflow.com/questions/58037565/what-could-be-another-environment-ai-learning
anaconda, artificial-intelligence
1,569,044,179
se_76899333
stackoverflow
ARTIFICIAL_INTELLIGENCE
layoutlmv3: Issue with postprocess Method Not Returning Data Beyond 512 Tokens Despite Complete Inference
layoutlmv3: Issue with postprocess Method Not Returning Data Beyond 512 Tokens Despite Complete Inference I am facing an issue with my post-processing method. I have a pipeline that involves preprocessing, inference, and post-processing steps. During the preprocessing step, I tokenize the input data and handle token o...
https://stackoverflow.com/questions/76899333/layoutlmv3-issue-with-postprocess-method-not-returning-data-beyond-512-tokens-d
python, machine-learning, artificial-intelligence, huggingface-transformers, huggingface-tokenizers
1,692,019,466
se_79132695
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to preserve the instance of Open AI assistance for the ongoing interaction with the model?
How to preserve the instance of Open AI assistance for the ongoing interaction with the model? I am trying to preserve the instance of the Assistant and AssistantClient class using session variable (asp.net application) and retrieve it for further conversation with the model. I believe this will help the assistant to...
https://stackoverflow.com/questions/79132695/how-to-preserve-the-instance-of-open-ai-assistance-for-the-ongoing-interaction-w
azure, artificial-intelligence, azure-openai, assistant
1,730,106,230
se_75401761
stackoverflow
ARTIFICIAL_INTELLIGENCE
Change Verbosity of Keras train_on_batch()?
Change Verbosity of Keras train_on_batch()? I am training a GAN using Keras's train_on_batch() command. This is very similar to Keras's fit(). However, in the documentation for fit(), there is a parameter for verbose, which changes how often a progress bar is printed to the console. My model has many batches, and so i...
https://stackoverflow.com/questions/75401761/change-verbosity-of-keras-train-on-batch
python, tensorflow, machine-learning, keras, artificial-intelligence
1,675,960,909
se_79108370
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error 404 trying to execute local AI (oLlAMA-PHI3)
Error 404 trying to execute local AI (oLlAMA-PHI3) I get a 404 error everytime i run this code when it reaches aiChatService.GetStreamingChatMessageContentsAsync(chatHistory). I've tried to reinstall the service and the respective AI but nothing works. any ideas?? using Microsoft.SemanticKernel; using Microsoft.Semant...
https://stackoverflow.com/questions/79108370/error-404-trying-to-execute-local-ai-ollama-phi3
c#, .net, artificial-intelligence, ollama
1,729,476,401
se_59116831
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I do to evaluate mean and std for a dataset?
How can I do to evaluate mean and std for a dataset? I am using pytorch and the dataset fashion MNIST but I do not know how can I do to evaluate the mean and the std for this dataset. Here is my code : import torch from torchvision import datasets, transforms import torch.nn.functional as F transform = transforms...
https://stackoverflow.com/questions/59116831/how-can-i-do-to-evaluate-mean-and-std-for-a-dataset
python, python-3.x, deep-learning, artificial-intelligence, pytorch
1,575,122,067
se_68330987
stackoverflow
ARTIFICIAL_INTELLIGENCE
module jdk.compiler does not "opens com.sun.tools.javac.processing" to unnamed module @4bae33a6
module jdk.compiler does not "opens com.sun.tools.javac.processing" to unnamed module @4bae33a6 I cloned this Project from Github https://github.com/PacktPublishing/Java-Machine-Learning-for-Computer-Vision.git I am going to use the FaceRecognizition from this project. But as soon as I try to run this in Int...
https://stackoverflow.com/questions/68330987/module-jdk-compiler-does-not-opens-com-sun-tools-javac-processing-to-unnamed-m
java, github, artificial-intelligence, face-recognition, intellij-14
1,625,945,853
se_26402894
stackoverflow
ARTIFICIAL_INTELLIGENCE
Values of weights and outputs in Convolutional Neural Networks
Values of weights and outputs in Convolutional Neural Networks I'm wondering what the range of values are for the weights and inputs are in a convolutional neural networks. My understanding is as follows: If the input is a grayscale image, the input value of the first layer would be 0-255. But in the subsequent layer...
https://stackoverflow.com/questions/26402894/values-of-weights-and-outputs-in-convolutional-neural-networks
artificial-intelligence, neural-network
1,413,457,763
se_78271449
stackoverflow
ARTIFICIAL_INTELLIGENCE
Model-based reinforcement learning code training is too slow, only 3 epochs (3000 steps) in 12 hours
Model-based reinforcement learning code training is too slow, only 3 epochs (3000 steps) in 12 hours I am a researcher of model-based reinforcement learning. I added the Normalizing flow model to my code to obtain better simulation samples through the flow. I integrated and debugged the two parts for a long time. Now ...
https://stackoverflow.com/questions/78271449/model-based-reinforcement-learning-code-training-is-too-slow-only-3-epochs-300
performance, deep-learning, pytorch, model, artificial-intelligence
1,712,200,046
se_71449872
stackoverflow
ARTIFICIAL_INTELLIGENCE
stable_baselines module error -> 'gym.logger' has no attribute 'MIN_LEVEL'
stable_baselines module error -> 'gym.logger' has no attribute 'MIN_LEVEL' I am trying to use stable_baselines, but any model I try to use gives me the same error: module 'gym.logger' has no attribute 'MIN_LEVEL' I have attached an example from their website that is giving me the same error. I tried...
https://stackoverflow.com/questions/71449872/stable-baselines-module-error-gym-logger-has-no-attribute-min-level
python, machine-learning, artificial-intelligence, reinforcement-learning, stable-baselines
1,647,089,723
se_78875648
stackoverflow
ARTIFICIAL_INTELLIGENCE
Transfer Learning Pretrained Model
Transfer Learning Pretrained Model I'm fitting transfer learning models on Google Colab. However, I've encountered a warning message with the code Epoch 1/30 /usr/local/lib/python3.10/dist-packages/keras/src/trainers/data_adapters/py_dataset_adapter.py:121: UserWarning: Your `PyDataset` class should call `super().__i...
https://stackoverflow.com/questions/78875648/transfer-learning-pretrained-model
python, machine-learning, keras, deep-learning, artificial-intelligence
1,723,733,385
se_79133223
stackoverflow
ARTIFICIAL_INTELLIGENCE
Azure AI Search, Pulling Vectors Embeddings from SQL table
Azure AI Search, Pulling Vectors Embeddings from SQL table We have an Azure SQL table with a column called Description (varchar(1000)). While we loaded data into this table via ADF Pipeline, we used the REST API to create vector embeddings on Description. We used text-embedding-ada-002 model which creates 1536 vectors...
https://stackoverflow.com/questions/79133223/azure-ai-search-pulling-vectors-embeddings-from-sql-table
sql-server, azure, artificial-intelligence, azure-cognitive-search, azure-ai-search
1,730,115,792
se_79130386
stackoverflow
ARTIFICIAL_INTELLIGENCE
Python transformers can't load
Python transformers can't load I have this code: from flask import Flask, request, jsonify from flask_cors import CORS from transformers import pipeline app = Flask(__name__) CORS(app) model = pipeline("text-generation", model="MBZUAI-Paris/Atlas-Chat-9B") @app.route('/generate', methods=['POST']) def generate()...
https://stackoverflow.com/questions/79130386/python-transformers-cant-load
python, flask, artificial-intelligence, huggingface-transformers
1,730,025,788
se_1836731
stackoverflow
ARTIFICIAL_INTELLIGENCE
QLearning and never-ending episodes
QLearning and never-ending episodes Let's imagine we have an (x,y) plane where a robot can move. Now we define the middle of our world as the goal state, which means that we are going to give a reward of 100 to our robot once it reaches that state. Now, let's say that there are 4 states(which I will call A,B,C,D) tha...
https://stackoverflow.com/questions/1836731/qlearning-and-never-ending-episodes
machine-learning, artificial-intelligence, reinforcement-learning
1,259,797,993
se_740389
stackoverflow
ARTIFICIAL_INTELLIGENCE
Good implementations of reinforcement learning?
Good implementations of reinforcement learning? For an ai-class project I need to implement a reinforcement learning algorithm which beats a simple game of tetris. The game is written in Java and we have the source code. I know the basics of reinforcement learning theory but was wondering if anyone in the SO community...
https://stackoverflow.com/questions/740389/good-implementations-of-reinforcement-learning
language-agnostic, artificial-intelligence, machine-learning, reinforcement-learning
1,239,467,539
se_75344458
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI GPT API pre-tokenizing?
OpenAI GPT API pre-tokenizing? I am trying to make a "personal assistant" chatbot (using GPT AI API) that can answer questions about myself when others ask it things. In order to do so, I have to give it a lot of information about myself, which I am currently doing in the prompt. Example: This means that every time s...
https://stackoverflow.com/questions/75344458/openai-gpt-api-pre-tokenizing
artificial-intelligence, token, tokenize, gpt-3
1,675,506,529
se_13455049
stackoverflow
ARTIFICIAL_INTELLIGENCE
Q-Learning in combination with neural-networks (rewarding understanding)
Q-Learning in combination with neural-networks (rewarding understanding) As far as my understanding is, it's possible to replace a look-up-table for Q-values (state-action-pair-evaluation) by a neural network for estimating these state-action pairs. I programmed a small library, which is able to propagate and backprop...
https://stackoverflow.com/questions/13455049/q-learning-in-combination-with-neural-networks-rewarding-understanding
machine-learning, neural-network, artificial-intelligence, reinforcement-learning
1,353,332,554
se_62922324
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is it possible to use non-pytoch augmentation in transform.compose
Is it possible to use non-pytoch augmentation in transform.compose I am working on a data classification problem that takes images as an input in Pytorch. I would like the use the imgaug library, but unfortunatly I keep on getting errors. Here is my code. #import necessary libraries from torch import nn from torchvisi...
https://stackoverflow.com/questions/62922324/is-it-possible-to-use-non-pytoch-augmentation-in-transform-compose
python, deep-learning, pytorch, artificial-intelligence, data-augmentation
1,594,840,766
se_79118798
stackoverflow
ARTIFICIAL_INTELLIGENCE
Safety setting for Vertex AI batch processing (Gemini Flash API)
Safety setting for Vertex AI batch processing (Gemini Flash API) How do you set safety settings on Batch Prediction job for Vertex AI? I can't seem to find anything on Google / docs about this. TypeError: BatchPredictionJob.submit() got an unexpected keyword argument 'model_parameters' # File Format # {"request":{"c...
https://stackoverflow.com/questions/79118798/safety-setting-for-vertex-ai-batch-processing-gemini-flash-api
google-cloud-platform, artificial-intelligence, google-gemini
1,729,700,217
se_79125083
stackoverflow
ARTIFICIAL_INTELLIGENCE
Azure.AI.OpenAI.Assistants SDK - Report error while trying to use File Retrieval Tool
Azure.AI.OpenAI.Assistants SDK - Report error while trying to use File Retrieval Tool It is about creating Assistant using chatGPT model. I use Azure.AI.OpenAI.Assistants SDK. While trying to create an assistant using below code, it reports OpenAI Retrieval V1 tool is not supported, in favor of the more advanced v2 f...
https://stackoverflow.com/questions/79125083/azure-ai-openai-assistants-sdk-report-error-while-trying-to-use-file-retrieval
azure, artificial-intelligence, azure-openai, assistant
1,729,848,633
se_49714969
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I predict the next image from a series of images?
How can I predict the next image from a series of images? I am planing to predict the next image from an image sequence. I have searched on the internet (Google/YouTube) for tutorials and for similar work. but I couldn't find any. I want to know whether it is possible to find the pattern and predict the next image and...
https://stackoverflow.com/questions/49714969/how-can-i-predict-the-next-image-from-a-series-of-images
image-processing, machine-learning, artificial-intelligence
1,523,167,626
se_79108075
stackoverflow
ARTIFICIAL_INTELLIGENCE
Getting a 400 error when calling Google Vertex API with "retrieval" function (datastore)
Getting a 400 error when calling Google Vertex API with "retrieval" function (datastore) I'm getting the below error whenever I include the retrieval tool in an API request. To confirm, the call works fine without adding in a retrieval tool. I'm POSTing to this endpoint: https://us-central1-aiplatform.google...
https://stackoverflow.com/questions/79108075/getting-a-400-error-when-calling-google-vertex-api-with-retrieval-function-da
google-cloud-storage, cloud, artificial-intelligence, google-cloud-vertex-ai
1,729,459,234
se_79117410
stackoverflow
ARTIFICIAL_INTELLIGENCE
Install local version of Haystack's Annotation Tool
Install local version of Haystack's Annotation Tool Although the instructions in Haystack describe how to install the annotation tool locally using Docker, all attempts have failed. Unfortunately, the website does not contain any more details. Has anyone been able to get this to work? If so, what am I missing? Rep...
https://stackoverflow.com/questions/79117410/install-local-version-of-haystacks-annotation-tool
python-3.x, artificial-intelligence, haystack
1,729,677,432
se_79116565
stackoverflow
ARTIFICIAL_INTELLIGENCE
llm chain for llama is throwing error that input should be an instance of runnable
llm chain for llama is throwing error that input should be an instance of runnable I have the following code quantization_config = BitsAndBytesConfig(load_in_4bit=True, llm_int4_enable_fp32_cpu_offload=True) sumModel = "meta-llama/Llama-3.2-1B" llm_llama_model = AutoModelForC...
https://stackoverflow.com/questions/79116565/llm-chain-for-llama-is-throwing-error-that-input-should-be-an-instance-of-runnab
machine-learning, artificial-intelligence, langchain, large-language-model, llama
1,729,663,267
se_79111733
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to derive attributes/labels from short plain text descriptions? (NER, LLM, ?)
How to derive attributes/labels from short plain text descriptions? (NER, LLM, ?) How to derive attributes/labels from short plain text descriptions? (NER, LLM, ?) I have short product descriptions that I’d like to transform into structured attributes. Example: Input: “La Lecciaia Cabernet Sauvignon 2017 – Red – 750ml...
https://stackoverflow.com/questions/79111733/how-to-derive-attributes-labels-from-short-plain-text-descriptions-ner-llm
nlp, artificial-intelligence, large-language-model, named-entity-recognition
1,729,544,096
se_79114613
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to load a *.mil into coremltools?
How to load a *.mil into coremltools? In Apple's documentation, Model Intermediate Language (MIL) is described as an intermediate language. I found many .mil files in Apple's system. You can easily find them using the following command: find /System/Library -name "*.mil" I am trying to study these .mil files and conv...
https://stackoverflow.com/questions/79114613/how-to-load-a-mil-into-coremltools
machine-learning, artificial-intelligence, reverse-engineering, coreml, coremltools
1,729,607,902
se_10349729
stackoverflow
ARTIFICIAL_INTELLIGENCE
Classifier with heterogeneous data
Classifier with heterogeneous data I have a l2-dimensional data set of 1000 samples composed of 5 temperature values, 5 price values, one integer value representing a judgement by a human expert (undecided=0, good=1, bad=2, danger=4) and a binary decision variable that I want to learn to predict. How can I find a ...
https://stackoverflow.com/questions/10349729/classifier-with-heterogeneous-data
machine-learning, neural-network, artificial-intelligence, classification
1,335,525,887
se_79103010
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to convert a .pth to a .pt?
How to convert a .pth to a .pt? How to convert a .pth (the formatting for the pre-trained voice library I’m using) to .pt (the formatting readable by the C# program im running it with)? I have only found information about torchvision (for converting .pth visual models). There’s little documentation about PyTorch.audio...
https://stackoverflow.com/questions/79103010/how-to-convert-a-pth-to-a-pt
python, pytorch, artificial-intelligence, text-to-speech, pth
1,729,270,807
se_79085126
stackoverflow
ARTIFICIAL_INTELLIGENCE
RunPods Serverless - Testing Endpoint in Local with Docker and GPU
RunPods Serverless - Testing Endpoint in Local with Docker and GPU I’m working on creating a custom container to run FLUX and Lora on Runpods, using this Stable Diffusion example as a starting point. I successfully deployed my first pod on Runpods, and everything worked fine. However, my issue arises when I make code ...
https://stackoverflow.com/questions/79085126/runpods-serverless-testing-endpoint-in-local-with-docker-and-gpu
docker, artificial-intelligence, serverless, amazon-sagemaker
1,728,891,028
se_79089616
stackoverflow
ARTIFICIAL_INTELLIGENCE
ValueError: Input is in incorrect format
ValueError: Input is in incorrect format I'm encountering a persistent issue when running the StableDiffusionInpaintPipeline for an inpainting task. Despite passing inputs in the expected formats (both the image and mask are in PIL.Image.Image format with correct sizes), I keep receiving the following error: ValueErro...
https://stackoverflow.com/questions/79089616/valueerror-input-is-in-incorrect-format
python, artificial-intelligence, stable-diffusion, generative-art, inpainting
1,728,989,944
se_79071486
stackoverflow
ARTIFICIAL_INTELLIGENCE
Chatbot skipping parts of resume (using Ollama's gemma2:2b model)
Chatbot skipping parts of resume (using Ollama's gemma2:2b model) I'm working on an AI chatbot that's supposed to respond based on my resume. I've been experimenting with both Gemma2:2b and Mistral, but I keep running into the same issue with both models: they seem to "skip" certain parts of the resume when respon...
https://stackoverflow.com/questions/79071486/chatbot-skipping-parts-of-resume-using-ollamas-gemma22b-model
python, artificial-intelligence, chatbot, langchain, ollama
1,728,495,821
se_4362243
stackoverflow
ARTIFICIAL_INTELLIGENCE
Any Chess AI for Flash?
Any Chess AI for Flash? I am looking for any Chess AI for flash CS5 ActionScript 3.
https://stackoverflow.com/questions/4362243/any-chess-ai-for-flash
actionscript-3, flash, artificial-intelligence, flash-cs5
1,291,595,479
se_13731441
stackoverflow
ARTIFICIAL_INTELLIGENCE
DB for chatbot in Python
DB for chatbot in Python I'm writing a chatbot which tries to simulate some sort of a conversation. Being a n00b in Python, I currently rely on lists and dictionaries for some standard responses to a standard set of queries. As I learn more, I realise that lists/dictionaries/functions aren't going to be enough and tha...
https://stackoverflow.com/questions/13731441/db-for-chatbot-in-python
python, machine-learning, artificial-intelligence, chatbot
1,354,737,776
se_79045085
stackoverflow
ARTIFICIAL_INTELLIGENCE
Issue with login widget in streamlit
Issue with login widget in streamlit I am trying to create a login system to a stramlit app, but I have some issues with the logic. I have a python file where is the login logic and another one where is the sytem's logic. To be more specific I want to move from login screen to dashboard when click 'login' and from das...
https://stackoverflow.com/questions/79045085/issue-with-login-widget-in-streamlit
python, authentication, artificial-intelligence, chatbot, streamlit
1,727,830,597
se_79088520
stackoverflow
ARTIFICIAL_INTELLIGENCE
Unexpected Results After Dropping and Recreating a Collection in Milvus
Unexpected Results After Dropping and Recreating a Collection in Milvus I am using the Milvus Docker image (milvusdb/milvus:v2.4.5) along with pymilvus version 2.4.5. After dropping a collection named 'demo' and then recreating it, I am experiencing unexpected behavior with the search results. When I insert data into ...
https://stackoverflow.com/questions/79088520/unexpected-results-after-dropping-and-recreating-a-collection-in-milvus
artificial-intelligence, vector-database, milvus
1,728,970,059
se_77702820
stackoverflow
ARTIFICIAL_INTELLIGENCE
Getting formatted response from Chatgpt api
Getting formatted response from Chatgpt api I’d like to get responses from ChatGPT in a neat and organized format, like bullet points. For instance, if I ask about five uses of Next.js, I’d prefer the answers to be presented as five distinct bullet points instead of a long paragraph. also i would like to know how to a...
https://stackoverflow.com/questions/77702820/getting-formatted-response-from-chatgpt-api
artificial-intelligence, chatbot, next.js13, openai-api
1,703,237,897
se_79085165
stackoverflow
ARTIFICIAL_INTELLIGENCE
Utilize Langchain for RAG + General Knowledge
Utilize Langchain for RAG + General Knowledge I am trying to create a chatbot that takes past social media posts (only text) of users and is capable of generating new posts based on that. However, my ideal scenario here would be to use RAG but also leverage the inherent capabilities of an LLM. In my case, if I ask my ...
https://stackoverflow.com/questions/79085165/utilize-langchain-for-rag-general-knowledge
python, deep-learning, artificial-intelligence, large-language-model, py-langchain
1,728,891,673
se_79084487
stackoverflow
ARTIFICIAL_INTELLIGENCE
Can't evaluate BLIP2 on a batch of images in parallel
Can't evaluate BLIP2 on a batch of images in parallel I'm trying to speed up the generation of captions on a large set of images using BLIP-2. The below code for one image works fine: prompt = "this is a picture of" inputs = processor(trainData[0]["image"],text=prompt, return_tensors="pt").to(device, torch.float16...
https://stackoverflow.com/questions/79084487/cant-evaluate-blip2-on-a-batch-of-images-in-parallel
artificial-intelligence, multimodal
1,728,868,579
se_79081777
stackoverflow
ARTIFICIAL_INTELLIGENCE
RuntimeError: unable to mmap bytes from file; Cannot allocate memory when loading checkpoint shards (Llama 3.2)
RuntimeError: unable to mmap bytes from file; Cannot allocate memory when loading checkpoint shards (Llama 3.2) I am trying to load a Llama 3.2 model on my Amazon Linux 2 server, using huggingface: https://huggingface.co/unsloth/Llama-3.2-11B-Vision-Instruct I am using the following code from their docs: import reques...
https://stackoverflow.com/questions/79081777/runtimeerror-unable-to-mmap-bytes-from-file-cannot-allocate-memory-when-loadin
artificial-intelligence, llama
1,728,762,277
se_6635245
stackoverflow
ARTIFICIAL_INTELLIGENCE
Chatbot Conversation Objects, your approach?
Chatbot Conversation Objects, your approach? I'm working on a chatbot in python for an irc channel I frequent. One of my goals is to have the bot able to very basically keep track of conversations it is having with users. I am presently using conversation objects. When a user addresses the bot, it creates a new convo ...
https://stackoverflow.com/questions/6635245/chatbot-conversation-objects-your-approach
python, artificial-intelligence, chatbot
1,310,220,597
se_76706171
stackoverflow
ARTIFICIAL_INTELLIGENCE
Langchain agent does not always use the tool correctly
Langchain agent does not always use the tool correctly Sometimes the Langchain Agent entering the custom tool with the input: "Invalid or incomplete response" Even if the LLM seems to use the tool correctly. Any idea why and how to fix that ? I would point out that sometimes everything works as expected. My tool: @too...
https://stackoverflow.com/questions/76706171/langchain-agent-does-not-always-use-the-tool-correctly
python, artificial-intelligence, langchain, py-langchain, large-language-model
1,689,609,052
se_79057839
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to Convert Squared L2 Distances to Similarity Scores
How to Convert Squared L2 Distances to Similarity Scores When using L2 (Euclidean distance) as the metric type in Milvus, the scores returned are squared L2 distances, which range from [0.0, +∞]. How can I convert these scores to similarity scores in the range [0, 1], where 1 indicates the highest similarity? Please p...
https://stackoverflow.com/questions/79057839/how-to-convert-squared-l2-distances-to-similarity-scores
artificial-intelligence, vector-database, milvus
1,728,157,944
se_79070131
stackoverflow
ARTIFICIAL_INTELLIGENCE
Mistral Model not found issue in Spring AI
Mistral Model not found issue in Spring AI I am exploring Spring AI. I created a RAG application using PgVector store but when I hit the endpoint it's showing me the below error: Not Found - {"error":"model \"mistral\" not found, try pulling it first"} Even though I have mentioned in the application.properties file t...
https://stackoverflow.com/questions/79070131/mistral-model-not-found-issue-in-spring-ai
spring, artificial-intelligence, ollama, pgvector, spring-ai
1,728,475,375
se_78270511
stackoverflow
ARTIFICIAL_INTELLIGENCE
KeyError: 'Exception encountered when calling Functional.call()
KeyError: 'Exception encountered when calling Functional.call() I am trying to construct a model that accepts two inputs. Within this model, I've designed three blocks: two correspond to the structure of the first blocks of EfficientNetB0 up to block 4 (A), while the third block (B) mirrors the architecture of Eff...
https://stackoverflow.com/questions/78270511/keyerror-exception-encountered-when-calling-functional-call
python, conv-neural-network, artificial-intelligence, image-classification, model-fitting
1,712,178,314
se_79064412
stackoverflow
ARTIFICIAL_INTELLIGENCE
`do_bulk_insert` Requires Existing Collection - MilvusException: collection not found
`do_bulk_insert` Requires Existing Collection - MilvusException: collection not found I'm attempting to use do_bulk_insert to create a new collection but I'm encountering an error indicating that the collection does not exist. The error message states: MilvusException: (code=100, message=collection not found[database...
https://stackoverflow.com/questions/79064412/do-bulk-insert-requires-existing-collection-milvusexception-collection-not
artificial-intelligence, vector-database, milvus
1,728,365,473
se_79061780
stackoverflow
ARTIFICIAL_INTELLIGENCE
LLM not able to parse output using stroutputparser()
LLM not able to parse output using stroutputparser() I am often getting this error in Langchain agent.I am doing a RAG operation and using Langchain tools and agents. I use AWS services like bedrock and Lambda for the application. This is How, I have defined agents: from langchain.agents.initialize import initialize_a...
https://stackoverflow.com/questions/79061780/llm-not-able-to-parse-output-using-stroutputparser
python, amazon-web-services, artificial-intelligence, large-language-model, py-langchain
1,728,301,144
se_79052117
stackoverflow
ARTIFICIAL_INTELLIGENCE
huggingface model inference: ERROR: Flag 'minloglevel' was defined more than once (in files 'src/error.cc' and ..)
huggingface model inference: ERROR: Flag 'minloglevel' was defined more than once (in files 'src/error.cc' and ..) I'm trying to use llama 3.1 70b from huggingface(end goal is to quantize it and deploy it in amazon sagemaker), but I'm facing: ERROR: Flag 'minloglevel' was defined more than once (in fi...
https://stackoverflow.com/questions/79052117/huggingface-model-inference-error-flag-minloglevel-was-defined-more-than-onc
python, artificial-intelligence, large-language-model, huggingface, llama
1,727,988,391
se_78999845
stackoverflow
ARTIFICIAL_INTELLIGENCE
Get the attention scores of a pretrained transformer in pytorch
Get the attention scores of a pretrained transformer in pytorch I've been trying to look at the attention scores of a pretrained transformer when I pass specific data in. It's specifically a Pytorch Transformer. I've tried using forward hooks, but I'm only able to get the final output of attention modules when what I ...
https://stackoverflow.com/questions/78999845/get-the-attention-scores-of-a-pretrained-transformer-in-pytorch
pytorch, neural-network, artificial-intelligence, transformer-model, attention-model
1,726,686,393
se_78833369
stackoverflow
ARTIFICIAL_INTELLIGENCE
Filtering results by gender: Adding a boolean field schema does not enhance search speed
Filtering results by gender: Adding a boolean field schema does not enhance search speed I have created a collection with the following specifications: Milvus Version: 2.4.4 CPU Number of Entities: 20 million Vector Field: One field of type float with a dimension of 512 Boolean Field: Represents gender, with a 50% pr...
https://stackoverflow.com/questions/78833369/filtering-results-by-gender-adding-a-boolean-field-schema-does-not-enhance-sear
database, artificial-intelligence, vector-database, milvus
1,722,844,690
se_79051860
stackoverflow
ARTIFICIAL_INTELLIGENCE
Building Milvus on Mac M3: Errors Encountered During Distribution Setup
Building Milvus on Mac M3: Errors Encountered During Distribution Setup I am attempting to customize and build Milvus for distributed use on my Apple M3 system with 16GB of RAM. I want to create a custom Milvus image and use milvus-operator to start the system. However, I am uncertain if I need to modify milvus-operat...
https://stackoverflow.com/questions/79051860/building-milvus-on-mac-m3-errors-encountered-during-distribution-setup
artificial-intelligence, vector-database, milvus
1,727,981,823
se_78672901
stackoverflow
ARTIFICIAL_INTELLIGENCE
Cannot install TensorFlow gpu
Cannot install TensorFlow gpu Sorry for my bad English. I'm on Windows 11 and have CUDA 11.8 nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0`...
https://stackoverflow.com/questions/78672901/cannot-install-tensorflow-gpu
python, tensorflow, artificial-intelligence, tensorflow2.0
1,719,410,493
se_79019184
stackoverflow
ARTIFICIAL_INTELLIGENCE
Azure Content Filter returning content=None but no filter was triggered
Azure Content Filter returning content=None but no filter was triggered I'm encountering an issue with the Azure OpenAI content filter (for responses from gpt-4o) where the content is returned as None, but all the content filters (hate, self-harm, sexual, violence) are evaluated as False. This is confusing because no ...
https://stackoverflow.com/questions/79019184/azure-content-filter-returning-content-none-but-no-filter-was-triggered
azure, artificial-intelligence, openai-api, azure-openai, gpt-4
1,727,189,464
se_79036452
stackoverflow
ARTIFICIAL_INTELLIGENCE
XFormersMetadata.__init__() got an unexpected keyword argument 'is_prompt'
XFormersMetadata.__init__() got an unexpected keyword argument 'is_prompt' I am building an application which uses llm inference, so I tried vllm. Since there is little to no information available for this library I wish to seek the help of experts. The code snippet that I have attached below is just for testi...
https://stackoverflow.com/questions/79036452/xformersmetadata-init-got-an-unexpected-keyword-argument-is-prompt
python, machine-learning, artificial-intelligence, large-language-model, vllm
1,727,615,000
se_79045844
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error Encountered During Hybrid Search in Milvus
Error Encountered During Hybrid Search in Milvus I am trying to perform a hybrid search using Milvus with the provided code: from langchain_core.output_parsers import StrOutputParser from langchain_core.prompts import PromptTemplate from langchain_core.runnables import RunnablePassthrough from langchain_milvus.retriev...
https://stackoverflow.com/questions/79045844/error-encountered-during-hybrid-search-in-milvus
database, artificial-intelligence, vector-database, milvus
1,727,856,050
se_79045074
stackoverflow
ARTIFICIAL_INTELLIGENCE
N Queen problem with Evolutionary Algorithm
N Queen problem with Evolutionary Algorithm I am trying to solve a NQueen problem using Evolutionary algorithm but im not able to get desired output of my graph. Following is the code I wrote import matplotlib.pyplot as plt import random import numpy as np # Constants N = 8 # Size of the N-Queens problem POP_SIZE = ...
https://stackoverflow.com/questions/79045074/n-queen-problem-with-evolutionary-algorithm
python, artificial-intelligence, evolutionary-algorithm, n-queens
1,727,829,779
se_78763327
stackoverflow
ARTIFICIAL_INTELLIGENCE
Convert safetensors model format(LLaVA model) into gguf format
Convert safetensors model format(LLaVA model) into gguf format I want to do LLaVA inference in ollama, so I need to convert it in gguf file format. My model has the file format safetensors.(trained with lora) It seems that ollama supports only llama, but not llava as shown here, https://github.com/ollama/ollama/blob/m...
https://stackoverflow.com/questions/78763327/convert-safetensors-model-formatllava-model-into-gguf-format
machine-learning, artificial-intelligence, large-language-model
1,721,292,473
se_79044706
stackoverflow
ARTIFICIAL_INTELLIGENCE
Webots controller crashes when changing a value in a vector
Webots controller crashes when changing a value in a vector Im having troubles with the Webots simulator. Whenever I run the code, it always freezes at exactly 0.750 secs, and reports that the main bot controller crashed (there's a second controller for scoring purposes). I know it's when I assign a new value to the v...
https://stackoverflow.com/questions/79044706/webots-controller-crashes-when-changing-a-value-in-a-vector
c++, artificial-intelligence, simulator, robotics, webots
1,727,815,914
se_78634762
stackoverflow
ARTIFICIAL_INTELLIGENCE
Tooling with Langchain Bedrock for RAG AI-Chat Generation
Tooling with Langchain Bedrock for RAG AI-Chat Generation I have a function that takes in a Langugaue Model, a vector store, question and tools; and returns a response, at the moment the tools argument is not being added because based on this example the function .bind_tools is not an attribute of the llm -> llm is be...
https://stackoverflow.com/questions/78634762/tooling-with-langchain-bedrock-for-rag-ai-chat-generation
python, artificial-intelligence, langchain, retrieval-augmented-generation, amazon-bedrock
1,718,660,345
se_76566993
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why is my torchserve docker image not working on google cloud run?
Why is my torchserve docker image not working on google cloud run? I have this docker image: # syntax = docker/dockerfile:1.2 FROM continuumio/miniconda3 # install os dependencies RUN mkdir -p /usr/share/man/man1 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \ ...
https://stackoverflow.com/questions/76566993/why-is-my-torchserve-docker-image-not-working-on-google-cloud-run
docker, pytorch, artificial-intelligence, google-cloud-run, torchserve
1,687,884,187
se_79038696
stackoverflow
ARTIFICIAL_INTELLIGENCE
what input should I use to predict rl model? will it be scaled or inv scaled?
what input should I use to predict rl model? will it be scaled or inv scaled? I am using sb3 DQN to train stock data where my obs is last 120 candle with 7 feature i.e open high low close hour min rsi etc... . so obs shape would be (120,7) output would be discrete with 3 int 0, 1, 2 (Hold, buy, sell respectively). My ...
https://stackoverflow.com/questions/79038696/what-input-should-i-use-to-predict-rl-model-will-it-be-scaled-or-inv-scaled
python, machine-learning, artificial-intelligence, reinforcement-learning, stablebaseline3
1,727,688,252
se_77614465
stackoverflow
ARTIFICIAL_INTELLIGENCE
Detecting a pause of 2 Seconds or more in Speech
Detecting a pause of 2 Seconds or more in Speech is there any reliable and consistent method to detect a pause of more than 2 seconds in AssemblyAi realtime transcript. https://www.assemblyai.com/docs/guides/real-time-streaming-transcription currently my implementation is this. if(currentFinalTranscript.audio_start - ...
https://stackoverflow.com/questions/77614465/detecting-a-pause-of-2-seconds-or-more-in-speech
javascript, artificial-intelligence, speech-recognition, transcription
1,701,877,260
se_79000634
stackoverflow
ARTIFICIAL_INTELLIGENCE
CalcDistance Deprecated: How to Calculate Vector Distance in Milvus SDK?
CalcDistance Deprecated: How to Calculate Vector Distance in Milvus SDK? I encountered an error when trying to calculate the distance between two vectors using the CalcDistance(): service unavailable: CalcDistance deprecated. I am using milvus-sdk-go version v2.4.1 and standalone Milvus version v2.4.6. Here is the co...
https://stackoverflow.com/questions/79000634/calcdistance-deprecated-how-to-calculate-vector-distance-in-milvus-sdk
go, artificial-intelligence, vector-database, milvus
1,726,711,222
se_79028921
stackoverflow
ARTIFICIAL_INTELLIGENCE
LangChain Agent Failing
LangChain Agent Failing I am often getting this error in langchain agent.I am doing a RAG operation and using langchain tools and agents. I use AWS services like bedrock and Lambda for the application. this is How, I have defined agents: agent = initialize_agent( tools=tools, llm=llm, agent="zero-s...
https://stackoverflow.com/questions/79028921/langchain-agent-failing
python, artificial-intelligence, large-language-model, py-langchain
1,727,380,234
se_79023974
stackoverflow
ARTIFICIAL_INTELLIGENCE
Train a QdrantEmbeddingRetriever with custom model
Train a QdrantEmbeddingRetriever with custom model Using haystack-1x, I was able to create an EmbeddingRetriever and train it with a custom model as follows: retriever = EmbeddingRetriever( document_store = <my_doc_store>, embedding_model = <some_model>, ...
https://stackoverflow.com/questions/79023974/train-a-qdrantembeddingretriever-with-custom-model
python-3.x, artificial-intelligence, haystack
1,727,282,445
se_11477145
stackoverflow
ARTIFICIAL_INTELLIGENCE
Open Source Neural Network Library
Open Source Neural Network Library I am looking for an open source neural network library. So far, I have looked at FANN, WEKA, and OpenNN. Are the others that I should look at? The criteria, of course, is documentation, examples, and ease of use.
https://stackoverflow.com/questions/11477145/open-source-neural-network-library
machine-learning, artificial-intelligence, neural-network
1,342,207,931
se_76353315
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to fix &#39;fs module not found&#39; error when using Langchain document loaders in Next.js?
How to fix &#39;fs module not found&#39; error when using Langchain document loaders in Next.js? I am working on an AI project. I am using Langchain and Next.js 13. I am trying to use the document loaders in langchain to load my PDF, however when I call a loader eg import { PDFLoader } from "langchain/document_loaders...
https://stackoverflow.com/questions/76353315/how-to-fix-fs-module-not-found-error-when-using-langchain-document-loaders-in
next.js, artificial-intelligence, langchain
1,685,302,928
se_79018974
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to create Langfuse Trace via .Net code
How to create Langfuse Trace via .Net code I am developing an AI solution which combine of .Net and Python app. The reason for Python app is mostly to communicate with OpenAI and Langfuse. I want to cut off the Python app to make solution simpler and easier to deploy, but couldn't find a way to write Langfuse trace vi...
https://stackoverflow.com/questions/79018974/how-to-create-langfuse-trace-via-net-code
.net, artificial-intelligence, openai-api
1,727,186,567
se_79016339
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error Accessing Sparse Embedding in Milvus Hybrid Search
Error Accessing Sparse Embedding in Milvus Hybrid Search I am following the hybrid search tutorial using BGE-M3 embeddings from Milvus, but I encounter an issue with this line of code: sparse_results = sparse_search(col, query_embeddings['sparse'][0]). It throws a NotImplementedError indicating that 1D sparse slices a...
https://stackoverflow.com/questions/79016339/error-accessing-sparse-embedding-in-milvus-hybrid-search
artificial-intelligence, vector-database, milvus
1,727,126,705
se_79011882
stackoverflow
ARTIFICIAL_INTELLIGENCE
Encountered keyerror when run LangChain program with Azure API
Encountered keyerror when run LangChain program with Azure API I encountered error when I run below codes (extracted from https://python.langchain.com/docs/tutorials/llm_chain/#using-language-models) in Jupyter Notebook: import getpass import os os.environ\["AZURE_OPENAI_API_KEY"\] = "key" from langchain_openai impo...
https://stackoverflow.com/questions/79011882/encountered-keyerror-when-run-langchain-program-with-azure-api
python, azure, artificial-intelligence, py-langchain
1,727,015,762
se_79009383
stackoverflow
ARTIFICIAL_INTELLIGENCE
Semantic Kernel. &#39;The SSL connection could not be established, see inner exception.&#39;
Semantic Kernel. &#39;The SSL connection could not be established, see inner exception.&#39; I am trying Semantic Kernel with OpenAI in a Muai application. I am able to successfully get a simple prompt response using windows. However running under Android (emulator and local device) I get the error Microsoft.SemanticK...
https://stackoverflow.com/questions/79009383/semantic-kernel-the-ssl-connection-could-not-be-established-see-inner-excepti
artificial-intelligence, maui
1,726,916,171
se_44119627
stackoverflow
ARTIFICIAL_INTELLIGENCE
Differences between backtracking and brute-force search
Differences between backtracking and brute-force search I'm currently taking a course in algorithms, and I'm having some difficulty understanding the exact definitions of brute-force search and backtracking. As I understand it, the following is true: Brute-force search (BFS) is a type of algorithm which computes ever...
https://stackoverflow.com/questions/44119627/differences-between-backtracking-and-brute-force-search
algorithm, search, artificial-intelligence, backtracking
1,495,477,300
se_76206459
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to continue incomplete response of openai API
How to continue incomplete response of openai API In OpenAI API, how to programmatically check if the response is incomplete? If so, you can add another command like "continue" or "expand" or programmatically continue it perfectly. In my experience, I know that if the response is incomplete, the API would return: "fin...
https://stackoverflow.com/questions/76206459/how-to-continue-incomplete-response-of-openai-api
python, machine-learning, artificial-intelligence, openai-api, chatgpt-api
1,683,613,989
se_78999652
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error during the compilation of the tokenizers package when trying to install transformers 4.27
Error during the compilation of the tokenizers package when trying to install transformers 4.27 The use of chatglm-6b requires the installation of transformers==4.27.1. I'm trying to install transformers==4.27.1, but I'm encountering an error during the compilation of the tokenizers package, which prevents the succes...
https://stackoverflow.com/questions/78999652/error-during-the-compilation-of-the-tokenizers-package-when-trying-to-install-tr
artificial-intelligence, huggingface-transformers, large-language-model
1,726,683,230
se_59962851
stackoverflow
ARTIFICIAL_INTELLIGENCE
Trouble fine tuning Huggingface GPT-2 on Colab -- Assertion error
Trouble fine tuning Huggingface GPT-2 on Colab -- Assertion error I wish to fine tune Huggingface's GPT-2 transformer model on my own text data. I want to do this on a Google Colab notebook. However, I have two problems. The first is that it doesn't seem to work. I install the various bits and pieces via the Colab: !g...
https://stackoverflow.com/questions/59962851/trouble-fine-tuning-huggingface-gpt-2-on-colab-assertion-error
python-3.x, nlp, artificial-intelligence, huggingface-transformers
1,580,285,459
se_78996575
stackoverflow
ARTIFICIAL_INTELLIGENCE
Depth First Search Time Complexity
Depth First Search Time Complexity Below is Python code for a depth search algorithm. def add_edge(adj, s, t): # Add edge from vertex s to t adj[s].append(t) # Due to undirected Graph adj[t].append(s) print('adj add edge', adj) def dfs_rec(adj, visited, s, loop_count): # Mark the current vert...
https://stackoverflow.com/questions/78996575/depth-first-search-time-complexity
algorithm, data-structures, artificial-intelligence, depth-first-search, breadth-first-search
1,726,634,894