llm icon indicating copy to clipboard operation
llm copied to clipboard

Calling `llm embed` with the same content but different --store settings does not update the table

Open simonw opened this issue 10 months ago • 7 comments

Just noticed this:

paginate-json 'https://api.github.com/repos/simonw/llm/issues?state=all&filter=all' > issues.json

cat issues.json | jq '[.[] | {id, title, body}]' | llm embed-multi llm-issues -

That worked and populated my llm-issues collection with 215 records. But then I realized I should have passed --store to store the content too. So I ran this:

cat issues.json | jq '[.[] | {id, title, body}]' | llm embed-multi llm-issues - --store

But the content column was not populated, because the code noticed that the content_hash had not changed.

simonw avatar Sep 04 '23 14:09 simonw