Find answers from the community

n
nivas
Offline, last seen 3 months ago
Joined September 25, 2024
All , Planning to build a bot on youtube videos - something similar to what is mentioned here https://medium.com/@bSharpML/summarize-youtube-videos-with-llamaindex-part-2-baaac5a7d0cd Anyone here can provide some guidance on this topic ? One of the issues we have is how to point to the specific section of a long video when answering the question of end user ?
2 comments
r
We are using pgvector and when retreiving results from database for user query , I see that we are limiting nodes to 2 , Is there any reason why we are harcoding 2 as limit ?
Plain Text
1749450564,-0.016525879502296448]'
     LIMIT 2
6 comments
n
L
T
I am using pgvector as my vector database , when I load data into vector store it is not adding index on pgvector .. Below is my code .. Data is there in the table but there is no index created for this data in table.
Plain Text
from sqlalchemy import make_url

url = make_url(connection_string)
vector_store = PGVectorStore.from_params(
    database=db_name,
    host=url.host,
    password=url.password,
    port=url.port,
    user=url.username,
    table_name=“testable”,
    embed_dim=1536,  # openai embedding dimension
)

storage_context = StorageContext.from_defaults(vector_store=vector_store)
index = VectorStoreIndex.from_documents(
    documents, storage_context=storage_context, show_progress=True
)
37 comments
n
L