Update rag_chain.py
This commit is contained in:
parent
f81a3bd52f
commit
88b940ebc9
@ -3,7 +3,7 @@ import os
|
||||
import weaviate
|
||||
from weaviate import Client
|
||||
from weaviate import WeaviateClient
|
||||
from weaviate.connect import ConnectionParams, AuthCredentials
|
||||
from weaviate.connect import ConnectionParams
|
||||
from weaviate.auth import AuthApiKey
|
||||
from weaviate.classes.init import Auth
|
||||
from langchain.vectorstores import Weaviate
|
||||
@ -108,7 +108,7 @@ def build_rag_chain():
|
||||
print("연결 실패 3. 서버 상태를 확인하세요.")
|
||||
|
||||
|
||||
auth_key = AuthCredentials.api_key("01js3q6y7twaxccm5dbh3se9bt") # 없으면 None
|
||||
# auth_key = AuthCredentials.api_key("01js3q6y7twaxccm5dbh3se9bt") # 없으면 None
|
||||
|
||||
# 커넥션 설정 (http, grpc 둘 다)
|
||||
connection_params = ConnectionParams.from_params(
|
||||
@ -118,7 +118,7 @@ def build_rag_chain():
|
||||
grpc_host="183.111.96.67",
|
||||
grpc_port=32619, # 예시 포트, 실제 grpc 포트 넣어야 함
|
||||
grpc_secure=False,
|
||||
auth_credentials=auth_key # 없으면 생략 가능
|
||||
auth_credentials=auth # 없으면 생략 가능
|
||||
)
|
||||
|
||||
client4 = WeaviateClient(connection_params=connection_params)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user