I've got the confluence loader successfully pulling documents down, but when i attempt to create a vector store index I get the following error:
ERROR:root:error: 'tuple' object has no attribute 'get_doc_id'
here is the code before that:
c = download_loader('ConfluenceReader')
reader = c(base_url=r["base_url"])
documents = reader.load_data(space_key=r["space_key"], include_attachments=False, page_status="current")
logging.info("downloading documents")
for documents in documents:
# TODO: fix this with actual values
logging.info("adding confluence link to document")
logging.info("storing in pinecone")
logging.info("pinecone index name: " + os.environ['PINECONE_INDEX_NAME'])
logging.info("pinecone environment: " + os.environ['PINECONE_ENVIRONMENT'])
pinecone.init(api_key=os.environ['PINECONE_API_KEY'], environment=os.environ['PINECONE_ENVIRONMENT'])
pinecone.Index("astoria").delete(delete_all=True, namespace=workspace_id + "-confluence")
vector_store = PineconeVectorStore(
index_name=os.environ['PINECONE_INDEX_NAME'],
environment=os.environ['PINECONE_ENVIRONMENT'],
namespace=workspace_id + "-confluence",
)
Any ideas what's breaking?