root layout

패스트캠퍼스

  1. 강의 질문
  2. AI TECH

Qdant 경로 추가 질문입니다.

2025.05.06 21:58 작성

처음에 저장을 할때,


# 어느 로컬 경로에다가 저장할것인지, 로컬 저장소를 위한 클라이언트 생성

client = QdrantClient(path="tmp/0505(1)/arxiv_paper")



# Dense 벡터로 컬렉션 생성

client.create_collection(

    collection_name="embodied_agent_0505",

    vectors_config=VectorParams(size=1024, distance=Distance.COSINE) # embeddings model의 size와 같아야한다. bge-m3는 1024다.

)



qdrant = QdrantVectorStore(

    client=client,

    collection_name="embodied_agent_0505",

    embedding=embeddings,

    retrieval_mode=RetrievalMode.DENSE  # SPARSE, HYBRID

)

-----------------------


이렇게 저장을 했어요. 그리고 불러올때

# client = QdrantClient(path="tmp/0505(1)")

client = QdrantClient(path="tmp/0505(1)/arxiv_paper")

embeddings = OllamaEmbeddings(model="bge-m3")


qdrant = QdrantVectorStore(

    client=client,

    collection_name="embodied_agent_0505",

    embedding=embeddings,

    retrieval_mode=RetrievalMode.DENSE  # SPARSE, HYBRID

)


이게 아닌가요? 제가 잘못 이해한거 같아요..

RuntimeError: Storage folder tmp/0505(1)/arxiv_paper is already accessed by another instance of Qdrant client. If you require concurrent access, use Qdrant server instead.

오류가 발생해요.


답변 

연관 질문

커뮤니티 질문보기