Comments (4)
Hi @vade, I'm not sure what would cause this. Can you try getting the full statement from the Postgres server log?
from pgvector-python.
Hi @ankane - thanks for the prompt response. I'll poke around, forgive me, is there a specific method for fetching the logs that you prefer?
As an aside, I think I resolved the issue - however I don't thinks a 'fix', I'm just avoiding perhaps an edge case in some of the underlying code.
In our SQLAlchemy benchmarking code, we have some nested loops which create Python class objects associated with a SQLAlchemy class/schema definition - some of which have a PGVector associated.
We had a DB commit on one of the outer loops. By making the commit sooner in the inner loop, it seems that the issue has been resolved. My intuition is that we aren't creating lots of overhead in the SQLAlchemy code.
This leads me to believe some sort of memory compression or optimization, or underlying issue was occurring with LOTS of objects and LOTs of NP Arrays
Whats interesting is that if I adjust the loop count, I can re-create the issue even with the commit on the inner loops.
This leads me to believe I am unintentionally cross some working memory threshold on the SQLAclhemy ORM side of things.
Does this seem reasonable?
from pgvector-python.
Re logs: Postgres should log errors (and the statements that cause them) in the server log by default. The relevant lines will look like:
ERROR: invalid input syntax for type vector: ...
STATEMENT: SELECT ...
Re memory threshold: I'm not aware of something like that. If you can create a single file script to reproduce, happy to look into it more.
from pgvector-python.
Closing due to no response
from pgvector-python.
Related Issues (11)
- Ideas
- How to get vectors within a certain distance in SQLalchemy HOT 1
- Set thresholds HOT 2
- Documentation HOT 1
- Django migration to add VectorField unable to find vector.control HOT 7
- No operator matches the given name and argument types HOT 1
- Question: How to access distance values when querying with Django? HOT 3
- sqlalchemy.exc.InvalidRequestError: Unknown PG numeric type: 24664 HOT 2
- Ideas
- How do i pass in np.ndarray with ndim > 1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgvector-python.