True though i wanted to do it this way :
embed_model = LangchainEmbedding(HuggingFaceEmbeddings())
llm_predictor = LLMPredictor(llm=OpenAI(temperature=0, model_name="text-davinci-002"))
persist_dir = "stores"
storage_context = StorageContext.from_defaults(
docstore=SimpleDocumentStore.from_dict({}),
vector_store=SimpleVectorStore.from_dict({}),
index_store=SimpleIndexStore.from_dict({}),
)
service_context = ServiceContext.from_defaults(embed_model=embed_model, llm_predictor=llm_predictor)
documents = BeautifulSoupWebReader().load_data(urls)
So it looks real cleaan y'know, i think that's how people would do it too