Skip to content

Commit

Permalink
Fix empty array set bug
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-epsilla committed Jul 30, 2023
1 parent ffd7a89 commit c16247b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Epsilla's core is written in C++ and leverages the advanced academic parallel gr
**1. Run Backend in Docker**
```shell
docker pull epsilla/vectordb
docker run --pull=always -d -p 8888:8888 epsilla/vectordb
docker run --pull=always -d -p 8888:8888 -v /tmp:/tmp epsilla/vectordb
```

**2. Interact with Python Client**
Expand Down
1 change: 1 addition & 0 deletions engine/utils/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ void Json::SetObject(const std::string& key, const Json& object) {
}

void Json::SetArray(const std::string& key, const std::vector<Json>& array) {
doc_[key] = nlohmann::json::array();
for (const auto& item : array) {
doc_[key].push_back(item.doc_);
}
Expand Down

0 comments on commit c16247b

Please sign in to comment.