Giter Site home page Giter Site logo

[Bug]: about llama_index HOT 2 OPEN

Banjomaestro avatar Banjomaestro commented on July 17, 2024
[Bug]:

from llama_index.

Comments (2)

dosubot avatar dosubot commented on July 17, 2024 2

The error you're encountering is likely related to memory management issues within the underlying C extensions or libraries used by the timescale_vector client. Here are some steps to help resolve this issue:

  1. Update Dependencies: Ensure you have the latest versions of llama-index, timescale_vector, and other dependencies.

  2. Check for Known Issues: Look for any reported issues on the GitHub repositories of llama-index and timescale_vector.

  3. Isolate the Problem: Create a minimal reproducible example to identify whether the issue is with the TimescaleVectorStore class or the timescale_vector client.

  4. Debugging: Use debugging tools to set breakpoints and inspect memory allocation. The error message suggests setting a breakpoint in malloc_error_break.

  5. Contact Support: If the issue persists, consider reaching out to the maintainers of the llama-index or timescale_vector packages.

Here's a minimal example to help isolate the problem:

from llama_index.legacy.vector_stores.timescalevector import TimescaleVectorStore

# Set up the Timescale service URL
TIMESCALE_SERVICE_URL = "postgres://tsdbadmin:<password>@<id>.tsdb.cloud.timescale.com:<port>/tsdb?sslmode=require"

# Create a TimescaleVectorStore instance
try:
    vector_store = TimescaleVectorStore.from_params(
        service_url=TIMESCALE_SERVICE_URL,
        table_name="your_table_name_here",
    )
    print("Vector store created successfully.")
except Exception as e:
    print(f"An error occurred: {e}")

Ensure that the timescale-vector package is correctly installed and imported:

pip install timescale-vector

If the issue persists, you might need to provide more detailed logs or context for further assistance [1][2].

To continue talking to Dosu, mention @dosu.

from llama_index.

logan-markewich avatar logan-markewich commented on July 17, 2024

@Banjomaestro this seems like an issue with either your env or the timescale vector store package. Maybe you are missing some core libraries (i.e. not python libraries, but system libraries) on the machine you are running on?

It works fine on google colab
https://colab.research.google.com/drive/1krUnNZ6q47B0KoCkTAIWdE9t-oVaIUd5?usp=sharing

from llama_index.

Related Issues (20)

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.