Skip to content

Commit

Permalink
replace _id with id for userembedding
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jun 8, 2024
1 parent 32f4447 commit b82a9ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions user-embedding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ bash build.sh

# Develop Environment
```bash
host_code_directory="/home/ubuntu/recommend-bytetrade-algorithm/user-embedding"
host_hugging_face_directory="/home/ubuntu/huggingface"
export host_code_directory="/home/ubuntu/r4/user-embedding"
export host_hugging_face_directory="/home/ubuntu/huggingface"
docker run --name temp_userembedding_develop -v $host_code_directory:/opt/rss-termius-v2-userembedding -v $host_hugging_face_directory:/root/.cache/huggingface --net=host -d beclab/userembedding_develop
```
Use VSCode to open the user-embedding directory, then attach to the `temp_userembedding_develop` container.
Expand Down
2 changes: 1 addition & 1 deletion user-embedding/src/entity/entry.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub const MONGO_ID: &str = "_id";
pub const MONGO_ID: &str = "id";
pub const MONGO_FEED_ID: &str = "feed";
pub const MONGO_STATUS: &str = "status";
pub const MONGO_TITLE: &str = "title";
Expand Down
2 changes: 1 addition & 1 deletion user-embedding/src/entity/impression.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub const MONGO_ID: &str = "_id";
pub const MONGO_ID: &str = "id";
pub const MONGO_ENTRY_ID: &str = "entry_id";
pub const MONGO_SOURCE: &str = "source";
pub const MONGO_BATCH_ID: &str = "batch_id";
Expand Down

0 comments on commit b82a9ac

Please sign in to comment.