### Summary Simplified the `addInternal` method by removing unnecessary `HashMap` initialization and redundant `putAll` call. The method now directly inserts the chunk into `documentChunks`. ### Details - Removed temporary `HashMap` creation used only for a single entry. - Removed redundant `documentChunks.putAll(map)` and second `put()` call. - Final implementation calls `createChunk()` once and directly stores the result in `documentChunks`. Co-authored-by: Harikrishna <harikrishna.gurram@walmart.com> |
||
|---|---|---|
| .. | ||
| main/java/dev/langchain4j/store | ||
| test/java/dev/langchain4j/store | ||