Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

prompt_for_websearch = """
Answer the following query given the documents retrieved from the web.
Your answer shoud indicate that your answer was generated from websearch.
Your answer should indicate that your answer was generated from websearch.

Query: {{query}}
Documents:
Expand Down
4 changes: 2 additions & 2 deletions python/frameworks/llama_index/examples/ingestion_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
documents = SimpleDirectoryReader(input_files=[tf.name]).load_data()

llm = OpenAI(model="gpt-3.5-turbo", temperature=0.1)
pipline = IngestionPipeline(
pipeline = IngestionPipeline(
transformations=[
SentenceSplitter(chunk_size=1024, chunk_overlap=20),
TitleExtractor(llm=llm, metadata_mode=MetadataMode.EMBED, num_workers=8),
Expand All @@ -66,4 +66,4 @@
)

if __name__ == "__main__":
nodes = pipline.run(documents=documents)
nodes = pipeline.run(documents=documents)
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@


if __name__ == "__main__":
response = model.count_tokens("Write an artice on AGI.")
response = model.count_tokens("Write an article on AGI.")
print(response)