Coder Social home page Coder Social logo

Comments (4)

ankane avatar ankane commented on July 26, 2024

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.

vade avatar vade commented on July 26, 2024

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.

ankane avatar ankane commented on July 26, 2024

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.

ankane avatar ankane commented on July 26, 2024

Closing due to no response

from pgvector-python.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.