Qdrant, Google Cloud, Azure, Openai Api, Retrieval Augmented Gen.
sentences, and store for txt_file in txt_files: file_path = os.path.join(directory_path, txt_file) with open(file_path, "r") as file: text = file.read() sentences = sent_tokenize(text) all_sentences.extend(sentences) # Print the first few sentences as an example print(all_sentences[:10]) # Print