Skip to content

Commit

Permalink
Merge pull request #241 from tigergraph/GML-1816-compare-retrieval-ap…
Browse files Browse the repository at this point in the history
…proaches

fix ui default
  • Loading branch information
parkererickson-tg authored Jul 11, 2024
2 parents e9c2a90 + 3c6fcd6 commit b4bb798
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion copilot-ui/src/actions/ActionProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ActionProvider: React.FC<ActionProviderProps> = ({
onOpen: () => {
queryCopilotWs2(localStorage.getItem("creds")!);
console.log("WebSocket connection established to " + WS_URL);
sendMessage(localStorage.getItem("ragPattern")!);
sendMessage(localStorage.getItem("ragPattern") || "hnsw_overlap");
},
});

Expand Down
3 changes: 1 addition & 2 deletions copilot/app/routers/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ async def write_message_to_history(message: Message, usr_auth: str):
@router.websocket(route_prefix + "/{graphname}/chat")
async def chat(
graphname: str,
websocket: WebSocket,
rag_pattern: str = "hnsw_overlap"
websocket: WebSocket
):
"""
TODO:
Expand Down

0 comments on commit b4bb798

Please sign in to comment.