Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kg_build failure panic: assignment to entry in nil map #754

Closed
wey-gu opened this issue Jan 22, 2024 · 0 comments · Fixed by #756
Closed

kg_build failure panic: assignment to entry in nil map #754

wey-gu opened this issue Jan 22, 2024 · 0 comments · Fixed by #756
Assignees

Comments

@wey-gu
Copy link
Contributor

wey-gu commented Jan 22, 2024

Describe the bug

2024-01-22 05:41:33[info] query success, res: map[choices:[map[content_filter_results:map[hate:map[filtered:false severity:safe] self_harm:map[filtered:false severity:safe] sexual:map[filtered:false severity:safe] violence:map[filtered:false severity:safe]] finish_reason:stop index:0 message:map[content:{
  "nodes": [
    {"name": "signature style", "type": "entity"},
    {"name": "show business", "type": "entity"},
    {"name": "schtick", "type": "entity"},
    {"name": "visual equivalent", "type": "entity"},
    {"name": "work", "type": "entity"},
    {"name": "painting", "type": "entity"},
    {"name": "cartoon", "type": "entity"},
    {"name": "Roy Lichtenstein", "type": "entity"},
    {"name": "hedge fund manager", "type": "entity"},
    {"name": "artist", "type": "entity"},
    {"name": "buyer", "type": "entity"},
    {"name": "earnest student", "type": "entity"},
    {"name": "high school", "type": "entity"},
    {"name": "art school", "type": "entity"},
    {"name": "country", "type": "entity"},
    {"name": "RISD", "type": "entity"},
    {"name": "color class", "type": "entity"},
    {"name": "1993", "type": "entity"},
    {"name": "Providence", "type": "entity"},
    {"name": "college friend", "type": "entity"},
    {"name": "Nancy Parmet", "type": "entity"},
    {"name": "rent-controlled apartment", "type": "entity"},
    {"name": "building", "type": "entity"},
    {"name": "New York", "type": "entity"},
    {"name": "artists", "type": "entity"},
    {"name": "Yorkville", "type": "entity"},
    {"name": "Roman Gaul", "type": "entity"},
    {"name": "Romans", "type": "entity"},
    {"name": "map", "type": "entity"},
    {"name": "New York City", "type": "entity"},
    {"name": "Upper East Side", "type": "entity"},
    {"name": "rich", "type": "entity"},
    {"name": "1993", "type": "entity"},
    {"name": "home", "type": "entity"},
    {"name": "New York", "type": "entity"}
  ],
  "edges": [
    {"src": "signature style", "dst": "show business", "edgeType": "relationship", "props": {"name": "is known as"}},
    {"src": "schtick", "dst": "signature style", "edgeType": "relationship", "props": {"name": "is the visual equivalent of"}},
    {"src": "painting", "dst": "cartoon", "edgeType": "relationship", "props": {"name": "looks like"}},
    {"src": "painting", "dst": "Roy Lichtenstein", "edgeType": "relationship", "props": {"name": "is by"}},
    {"src": "painting", "dst": "hedge fund manager", "edgeType": "relationship", "props": {"name": "hangs in the apartment of"}},
    {"src": "artists", "dst": "signature style", "edgeType": "relationship", "props": {"name": "have"}},
    {"src": "buyer", "dst": "signature style", "edgeType": "relationship", "props": {"name": "pay a lot for"}},
    {"src": "earnest student", "dst": "high school", "edgeType": "relationship", "props": {"name": "draw in"}},
    {"src": "earnest student", "dst": "RISD", "edgeType": "relationship", "props": {"name": "come to"}},
    {"src": "RISD", "dst": "art school", "edgeType": "relationship", "props": {"name": "is"}},
    {"src": "color class", "dst": "RISD", "edgeType": "relationship", "props": {"name": "took at"}},
    {"src": "1993", "dst": "dropped out", "edgeType": "relationship", "props": {"name": "dropped out in"}},
    {"src": "1993", "dst": "New York", "edgeType": "relationship", "props": {"name": "was in"}},
    {"src": "friend Nancy Parmet", "dst": "rent-controlled apartment", "edgeType": "relationship", "props": {"name": "owned in"}},
    {"src": "building", "dst": "rent-controlled apartment", "edgeType": "relationship", "props": {"name": "owned in"}},
    {"src": "New York", "dst": "artists", "edgeType": "relationship", "props": {"name": "is where"}},
    {"src": "Yorkville", "dst": "New York", "edgeType": "relationship", "props": {"name": "is in"}},
    {"src": "Yorkville", "dst": "1993", "edgeType": "relationship", "props": {"name": "was in"}},
    {"src": "Roman Gaul", "dst": "Romans", "edgeType": "relationship", "props": {"name": "controlled by"}},
    {"src": "map", "dst": "New York City", "edgeType": "relationship", "props": {"name": "of"}},
    {"src": "Upper East Side", "dst": "1993", "edgeType": "relationship", "props": {"name": "is in"}},
    {"src": "Yorkville", "dst": "rich", "edgeType": "relationship", "props": {"name": "is"}},
    {"src": "1993", "dst": "home", "edgeType": "relationship", "props": {"name": "becoming"}},
    {"src": "New York", "dst": "home", "edgeType": "relationship", "props": {"name": "living in"}}
  ]
} role:assistant]]] 
created:1.705902083e+09 
id:chatcmpl-8jhLf48YXKFxPIRf5Pg4LzSSywYIU 
model:gpt-35-turbo object:chat.completion 
prompt_filter_results:[map[content_filter_results:
map[
hate:map[filtered:false severity:safe] 
self_harm:map[filtered:false severity:safe] 
sexual:map[filtered:false severity:safe] 
violence:map[filtered:false severity:safe]] prompt_index:0]] usage:map[completion_tokens:1294 prompt_tokens:619 total_tokens:1913]
]

2024-01-22 05:41:33[error] panic: assignment to entry in nil map

How To Reproduce

Steps to reproduce the behavior:

As #746.

Expected behavior

Is there any type of exceptions we could catch and take care of additionally here?

@wey-gu wey-gu changed the title kg_build failure kg_build failure panic: assignment to entry in nil map Jan 22, 2024
@mizy mizy mentioned this issue Jan 22, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants