DOC: Index requires that your documents table uses a GUID as your primary ID. #7607
Open
2 tasks done
Labels
auto:documentation
Changes to documentation and examples, like .md, .rst, .ipynb files. Changes to the docs/ folder
Checklist
Issue with current documentation:
Re: https://js.langchain.com/docs/how_to/indexing
According to
@langchain/core/dist/indexing/base.js
, the index function generates hashes for each of your documents prior to indexing them. Then, it attempts to write them to the database using theids
optional parameter.If you have setup your tables to use an integer or other type of unique id for the table, this function will not work properly if I'm understanding correctly.
Idea or request for content:
Please correct the documentation to either: a) add this as a notice or b) Add an example or configuration on how to use it with a different type of id, as I expect this will be relatively common.
The text was updated successfully, but these errors were encountered: