Skip to content

[Bug] Knowledgebase always returns wrong page number #3250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AkhilmsAchu opened this issue May 20, 2025 · 1 comment
Open

[Bug] Knowledgebase always returns wrong page number #3250

AkhilmsAchu opened this issue May 20, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@AkhilmsAchu
Copy link

Description

I have created a teams of agent were one of the sub agent has access to knowledgebase. While retrieving the data from Knowledgebase, its always returning last page number of the documen as the page number of result meta_data.

Below is my knowledge declaration

pdf_knowledge_base= PDFKnowledgeBase(
path=Path(r"Docs"),
vector_db=LanceDb(
uri="vectordb",
table_name="policy_data", search_type=SearchType.hybrid,
embedder=azure_embedding_model
),
)

It's fetching the contents properly, only page no is coming wrong.

Steps to Reproduce

Give a doc related query to agent
Agent will fetch the records from Knowledgebase with wrong page number

Agent Configuration (if applicable)

No response

Expected Behavior

Page no should be the actual page no from where result was fetched 4

Actual Behavior

Giving last page no of the pdf for every search meta data

Screenshots or Logs (if applicable)

Image

Environment

Windows 11
Python 3.12
Agno 1.5.1
lancedb 0.22.0

Possible Solutions (optional)

No response

Additional Context

No response

@AkhilmsAchu AkhilmsAchu added the bug Something isn't working label May 20, 2025
Copy link

linear bot commented May 20, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant