Skip to content
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

restricting search to just my data #190

Open
punkish opened this issue Dec 26, 2024 · 1 comment
Open

restricting search to just my data #190

punkish opened this issue Dec 26, 2024 · 1 comment
Assignees
Labels

Comments

@punkish
Copy link

punkish commented Dec 26, 2024

In Issue #189 I have asked how to insert embeddings for a lot of plaintext articles (almost a million) using Ollama/llama 3.2 and nomic-embed-text. In the meantime, I create a small test project with 20 articles as follows

async function loadData() {
    const result = await db.execute("SELECT fulltext FROM t LIMIT 20");
    for (const row of result.rows) {
        app.addLoader(new TextLoader({ text: row.fulltext }));
    }
}

Then I query as follows

async function queryData(query) {
    const ans = await app.query(query)
    console.log(ans.content)
}

const query = 'Are there any species with maxillary and mandibular plates yellow?';
await queryData(query);

I get a reply that seems to be pulling in data from outside what I inserted. Is there any way to restrict the answers to just my corpus?

Copy link

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants