313 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
73
views
How to run VS Code Python tests inside an external app’s embedded interpreter?
I'm working on Python code that must be executed inside an external application which embeds its own Python interpreter (not the system Python, nor a virtual environment).
Because of this, I can't ...
2
votes
1
answer
140
views
Correct way to embed and bundle Python in C++ to avoid "ModuleNotFoundError: encodings"?
I am trying to embed Python inside my C++ DLL.
The idea is that the DLL, once distributed, should be sufficient and not rely on other installations and downloads.
Interestingly, the below "sort ...
0
votes
0
answers
54
views
Error when Importing pandas in embedded python in C++
I'm working with Python 3.10 64-bit,win10,vs2013
I run the python script alone and there are no errors and it also imports the pandas package properly.However, when calling python scripts in c++ (...
0
votes
0
answers
51
views
PyImport_Import does not import functions
I'm doing some code that allows plugin authors for our software to embed python code in their plugins. And I'm stuck with some strange import behavior.
When I import this simple python file with ...
1
vote
1
answer
1k
views
How to develop a Generalized RAG Pipeline for Text, Images, and Structured Data [closed]
I'm trying to find a general solution for RAG to solve problems involving both text, images, chart, tables,.., they are in many different formats such as .docx, .xlsx, .pdf.
The requirement for the ...
4
votes
1
answer
7k
views
Ollama with RAG for local utilization to chat with pdf
I am trying to build ollama usage by using RAG for chatting with pdf on my local machine.
I followed this GitHub repo: https://github.com/tonykipkemboi/ollama_pdf_rag/tree/main
The issue is when I am ...
0
votes
1
answer
357
views
Why is embedding CSV file taking much longer than pdf embedding in LangChain?
I successfully embedded a 400-page PDF document within 1-2 hours. However, when I tried to embed a CSV file with about 40k rows and only one column, the estimated embedding time is approximately 24 ...
0
votes
0
answers
56
views
How to load a python module installed in the executable folder? (C++)
I have an install structure like this:
install_folder\
app.exe
lib.dll
python\
kitsu.py
And I am trying to execute some functions in my application from the file kitsu.py.
My C++ code is like this:
(...
1
vote
1
answer
2k
views
Chroma DB using embedding values
I tried creating a chromadb using embedding values but its not working. I have my own embedding model that I want to deploy on the server. So here if I pass text as list I am getting its embedded ...
-2
votes
1
answer
176
views
Embedded Python packages not recognised by Intellisense (Visual Studio Community 2022 Version 17.10.1)
I am creating a Unity project that has python embedded using this tutorial, here. For some reason Inillisense is warning that the installed packages, which used pip, were not reconised. I have made ...
0
votes
1
answer
854
views
sys.path not always/reliably set by sitecustomize -- how can it be reliably overridden?
I have an application using embedded Python, which includes python.exe. I have added a sitecustomize.py to set sys.path, something like:
import sys
sys.path = ['.','.\\python310.zip','.\\Lib','.\\Lib\\...
0
votes
1
answer
247
views
Does Pytorch automaticly use the GPU
I'm new to using torch and calculate on huge amount of data. I want to create embeddings for an large text corpus and write my embedding function, it works well but it seems pretty slow, so I'm not ...
3
votes
1
answer
207
views
How does this embedded Python packaging find its lib files?
Blender(*) for Windows is shipped with an embedded Python, like this:
blender-2.79b-windows64\
2.79\
python\
bin\
python.exe
python35.dll # ...
1
vote
1
answer
315
views
Folder structure inside Python "embedded" packaging
I distribute a ready-to-run software for Windows written in Python by:
shipping the content of an embedded version of Python, say python-3.8.10-embed-amd64.zip
adding a myprogram\ package folder (= ...
2
votes
0
answers
737
views
Python .pth and ._pth files (standard install vs. embedded Python)
I see two diffrent behaviours about .pth and ._pth files:
the official Python install for Windows uses .pth files in lib\site-packages as documented in https://docs.python.org/3.12/library/site.html#...