├── .gitignore ├── LICENSE ├── README.md ├── choose_your_own_adventure ├── .env ├── README.md ├── adventure.py └── requirements.txt ├── doctalk ├── .gitignore ├── README.md ├── aws_lambda │ ├── Dockerfile │ ├── api-gateway.py │ ├── main.py │ └── template.yaml ├── frontend │ ├── .eslintrc.json │ ├── .gitignore │ ├── next.config.js │ ├── package.json │ ├── postcss.config.js │ ├── public │ │ ├── fonts │ │ │ ├── Lexend-ExtraBold.woff │ │ │ ├── Lexend-ExtraBold.woff2 │ │ │ ├── Lexend-Medium.woff │ │ │ ├── Lexend-Medium.woff2 │ │ │ ├── Lexend-Regular.woff │ │ │ ├── Lexend-Regular.woff2 │ │ │ ├── Lexend-SemiBold.woff │ │ │ └── Lexend-SemiBold.woff2 │ │ ├── icons │ │ │ ├── github.svg │ │ │ ├── octo.svg │ │ │ └── vercel.svg │ │ └── images │ │ │ └── social-share.png │ ├── src │ │ ├── app │ │ │ ├── api │ │ │ │ └── ask │ │ │ │ │ └── route.ts │ │ │ ├── icon.png │ │ │ ├── layout.tsx │ │ │ └── page.tsx │ │ ├── components │ │ │ ├── ChatBubble.tsx │ │ │ ├── ErrorBanner.tsx │ │ │ ├── Footer.tsx │ │ │ ├── Header.tsx │ │ │ ├── LoadingDots.tsx │ │ │ ├── Prompt.tsx │ │ │ └── UserChat.tsx │ │ └── styles │ │ │ ├── components │ │ │ ├── chat.css │ │ │ ├── footer.css │ │ │ ├── header.css │ │ │ ├── hero.css │ │ │ ├── interactive.css │ │ │ └── loading.css │ │ │ ├── global.css │ │ │ └── main.css │ ├── tailwind.config.ts │ ├── tsconfig.json │ └── yarn.lock ├── langchain │ ├── .env │ └── main.py ├── media │ ├── ecr-repo-creation.png │ ├── ecr-repo.png │ ├── image1.png │ ├── image2.png │ ├── image3.png │ └── image4.png ├── requirements.txt └── vector_db │ ├── .env │ ├── data │ ├── octoai_docs_urls.json │ └── pinecone_docs_urls.json │ ├── init_vectordb.py │ └── list_urls.py ├── e-commerce ├── .env-example ├── README.md ├── main.py └── pyproject.toml ├── function_calling_cx_agent ├── .env.sample ├── .gitignore ├── README.md ├── function_calling_cx_agent │ ├── __init__.py │ └── agent.py ├── poetry.lock └── pyproject.toml ├── langchain ├── README.md ├── agent.py ├── embeddings.py ├── poetry.lock ├── pyproject.toml └── tool.py ├── llama31_tools ├── README.md ├── llama31_tools.ipynb └── requirements.txt ├── llama31_tools_typescript ├── README.md ├── main.ts └── package.json ├── llama_index ├── simple-agents │ ├── README.md │ ├── built-in-tools.py │ ├── custom-tools.py │ └── pyproject.toml └── simple │ ├── README.md │ ├── embeddings.py │ ├── llm.py │ └── requirements.txt ├── natural_language_query_engine ├── README.md ├── config │ └── constants.py ├── main.py ├── requirements.txt ├── resources │ ├── collection_schemas.json │ └── prompts │ │ ├── proofread_query.txt │ │ ├── query_generation.txt │ │ └── schema_generation.txt ├── services │ ├── db_client.py │ └── nlq_engine.py └── travel_assistant.py ├── octoai_openpipe_finetuning_for_toxicity_detection ├── .env.example ├── README.md ├── collect_classify_toxic_text.py ├── eval_outputs.jsonl ├── evaluate_classify_toxic_text.py ├── outputs.jsonl ├── patch_openai_w_openpipe.py └── requirements.txt ├── octoai_structured_generation ├── .env.sample ├── README.md ├── benchmark.py ├── json_mode.py ├── no_json_mode.py └── requirements.txt ├── octoai_text_summarization_methods ├── .env.example ├── README.md ├── raw_docs │ ├── aapl-20230930.pdf │ ├── formcrs.pdf │ ├── formx-17a-5_2a.pdf │ ├── tsla-20230930.pdf │ └── war-and-peace.pdf ├── requirements.txt └── summarization_methods_app.py ├── octoai_vs_openai_cost_diff_app ├── .env.example ├── README.md ├── contract_summarizer_harness.py ├── raw_docs │ ├── aapl-20230930.pdf │ ├── formcrs.pdf │ ├── formx-17a-5_2a.pdf │ ├── tsla-20230930.pdf │ └── war-and-peace.pdf └── requirements.txt ├── opeanai_ts_sdk ├── .gitignore ├── README.md ├── package.json ├── simple-tool-call.ts ├── test-basic.ts └── utils.ts ├── pdf_summarizer ├── nextjs │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── jsconfig.json │ ├── next.config.js │ ├── package-lock.json │ ├── package.json │ ├── postcss.config.js │ ├── public │ │ ├── background.webp │ │ ├── favicon.ico │ │ ├── next.svg │ │ └── vercel.svg │ ├── src │ │ ├── pages │ │ │ ├── _app.js │ │ │ ├── _document.js │ │ │ ├── api │ │ │ │ └── summarize.js │ │ │ └── index.js │ │ └── styles │ │ │ └── globals.css │ └── tailwind.config.js └── nodejs │ ├── .env.example │ ├── .gitattributes │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── files │ └── cv-template.pdf │ ├── index.js │ ├── old.js │ ├── package-lock.json │ ├── package.json │ └── preview.jpg ├── recipe_generator ├── .env ├── README.md ├── recipe_generator.py └── requirements.txt ├── simple_chat ├── .env ├── README.md ├── chat.py └── requirements.txt └── simple_migration ├── README.md ├── embedding.py └── llm.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/README.md -------------------------------------------------------------------------------- /choose_your_own_adventure/.env: -------------------------------------------------------------------------------- 1 | OCTOAI_API_TOKEN="" -------------------------------------------------------------------------------- /choose_your_own_adventure/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/choose_your_own_adventure/README.md -------------------------------------------------------------------------------- /choose_your_own_adventure/adventure.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/choose_your_own_adventure/adventure.py -------------------------------------------------------------------------------- /choose_your_own_adventure/requirements.txt: -------------------------------------------------------------------------------- 1 | langchain==0.1.5 2 | python-dotenv==1.0.0 3 | octoai-sdk==0.8.2 -------------------------------------------------------------------------------- /doctalk/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/.gitignore -------------------------------------------------------------------------------- /doctalk/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/README.md -------------------------------------------------------------------------------- /doctalk/aws_lambda/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/aws_lambda/Dockerfile -------------------------------------------------------------------------------- /doctalk/aws_lambda/api-gateway.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/aws_lambda/api-gateway.py -------------------------------------------------------------------------------- /doctalk/aws_lambda/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/aws_lambda/main.py -------------------------------------------------------------------------------- /doctalk/aws_lambda/template.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/aws_lambda/template.yaml -------------------------------------------------------------------------------- /doctalk/frontend/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/.eslintrc.json -------------------------------------------------------------------------------- /doctalk/frontend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/.gitignore -------------------------------------------------------------------------------- /doctalk/frontend/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/next.config.js -------------------------------------------------------------------------------- /doctalk/frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/package.json -------------------------------------------------------------------------------- /doctalk/frontend/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/postcss.config.js -------------------------------------------------------------------------------- /doctalk/frontend/public/fonts/Lexend-ExtraBold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/fonts/Lexend-ExtraBold.woff -------------------------------------------------------------------------------- /doctalk/frontend/public/fonts/Lexend-ExtraBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/fonts/Lexend-ExtraBold.woff2 -------------------------------------------------------------------------------- /doctalk/frontend/public/fonts/Lexend-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/fonts/Lexend-Medium.woff -------------------------------------------------------------------------------- /doctalk/frontend/public/fonts/Lexend-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/fonts/Lexend-Medium.woff2 -------------------------------------------------------------------------------- /doctalk/frontend/public/fonts/Lexend-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/fonts/Lexend-Regular.woff -------------------------------------------------------------------------------- /doctalk/frontend/public/fonts/Lexend-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/fonts/Lexend-Regular.woff2 -------------------------------------------------------------------------------- /doctalk/frontend/public/fonts/Lexend-SemiBold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/fonts/Lexend-SemiBold.woff -------------------------------------------------------------------------------- /doctalk/frontend/public/fonts/Lexend-SemiBold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/fonts/Lexend-SemiBold.woff2 -------------------------------------------------------------------------------- /doctalk/frontend/public/icons/github.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/icons/github.svg -------------------------------------------------------------------------------- /doctalk/frontend/public/icons/octo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/icons/octo.svg -------------------------------------------------------------------------------- /doctalk/frontend/public/icons/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/icons/vercel.svg -------------------------------------------------------------------------------- /doctalk/frontend/public/images/social-share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/public/images/social-share.png -------------------------------------------------------------------------------- /doctalk/frontend/src/app/api/ask/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/app/api/ask/route.ts -------------------------------------------------------------------------------- /doctalk/frontend/src/app/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/app/icon.png -------------------------------------------------------------------------------- /doctalk/frontend/src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/app/layout.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/app/page.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/components/ChatBubble.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/components/ChatBubble.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/components/ErrorBanner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/components/ErrorBanner.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/components/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/components/Footer.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/components/Header.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/components/LoadingDots.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/components/LoadingDots.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/components/Prompt.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/components/Prompt.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/components/UserChat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/components/UserChat.tsx -------------------------------------------------------------------------------- /doctalk/frontend/src/styles/components/chat.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/styles/components/chat.css -------------------------------------------------------------------------------- /doctalk/frontend/src/styles/components/footer.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/styles/components/footer.css -------------------------------------------------------------------------------- /doctalk/frontend/src/styles/components/header.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/styles/components/header.css -------------------------------------------------------------------------------- /doctalk/frontend/src/styles/components/hero.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/styles/components/hero.css -------------------------------------------------------------------------------- /doctalk/frontend/src/styles/components/interactive.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/styles/components/interactive.css -------------------------------------------------------------------------------- /doctalk/frontend/src/styles/components/loading.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/styles/components/loading.css -------------------------------------------------------------------------------- /doctalk/frontend/src/styles/global.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/styles/global.css -------------------------------------------------------------------------------- /doctalk/frontend/src/styles/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/src/styles/main.css -------------------------------------------------------------------------------- /doctalk/frontend/tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/tailwind.config.ts -------------------------------------------------------------------------------- /doctalk/frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/tsconfig.json -------------------------------------------------------------------------------- /doctalk/frontend/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/frontend/yarn.lock -------------------------------------------------------------------------------- /doctalk/langchain/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/langchain/.env -------------------------------------------------------------------------------- /doctalk/langchain/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/langchain/main.py -------------------------------------------------------------------------------- /doctalk/media/ecr-repo-creation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/media/ecr-repo-creation.png -------------------------------------------------------------------------------- /doctalk/media/ecr-repo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/media/ecr-repo.png -------------------------------------------------------------------------------- /doctalk/media/image1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/media/image1.png -------------------------------------------------------------------------------- /doctalk/media/image2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/media/image2.png -------------------------------------------------------------------------------- /doctalk/media/image3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/media/image3.png -------------------------------------------------------------------------------- /doctalk/media/image4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/media/image4.png -------------------------------------------------------------------------------- /doctalk/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/requirements.txt -------------------------------------------------------------------------------- /doctalk/vector_db/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/vector_db/.env -------------------------------------------------------------------------------- /doctalk/vector_db/data/octoai_docs_urls.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/vector_db/data/octoai_docs_urls.json -------------------------------------------------------------------------------- /doctalk/vector_db/data/pinecone_docs_urls.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/vector_db/data/pinecone_docs_urls.json -------------------------------------------------------------------------------- /doctalk/vector_db/init_vectordb.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/vector_db/init_vectordb.py -------------------------------------------------------------------------------- /doctalk/vector_db/list_urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/doctalk/vector_db/list_urls.py -------------------------------------------------------------------------------- /e-commerce/.env-example: -------------------------------------------------------------------------------- 1 | OCTOAI_TOKEN= 2 | -------------------------------------------------------------------------------- /e-commerce/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/e-commerce/README.md -------------------------------------------------------------------------------- /e-commerce/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/e-commerce/main.py -------------------------------------------------------------------------------- /e-commerce/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/e-commerce/pyproject.toml -------------------------------------------------------------------------------- /function_calling_cx_agent/.env.sample: -------------------------------------------------------------------------------- 1 | OCTOAI_TOKEN=... 2 | ENDPOINT_URL="https://text.octoai.run/v1/chat/completions" -------------------------------------------------------------------------------- /function_calling_cx_agent/.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__/ 2 | .env 3 | 4 | -------------------------------------------------------------------------------- /function_calling_cx_agent/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/function_calling_cx_agent/README.md -------------------------------------------------------------------------------- /function_calling_cx_agent/function_calling_cx_agent/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /function_calling_cx_agent/function_calling_cx_agent/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/function_calling_cx_agent/function_calling_cx_agent/agent.py -------------------------------------------------------------------------------- /function_calling_cx_agent/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/function_calling_cx_agent/poetry.lock -------------------------------------------------------------------------------- /function_calling_cx_agent/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/function_calling_cx_agent/pyproject.toml -------------------------------------------------------------------------------- /langchain/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/langchain/README.md -------------------------------------------------------------------------------- /langchain/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/langchain/agent.py -------------------------------------------------------------------------------- /langchain/embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/langchain/embeddings.py -------------------------------------------------------------------------------- /langchain/poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/langchain/poetry.lock -------------------------------------------------------------------------------- /langchain/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/langchain/pyproject.toml -------------------------------------------------------------------------------- /langchain/tool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/langchain/tool.py -------------------------------------------------------------------------------- /llama31_tools/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama31_tools/README.md -------------------------------------------------------------------------------- /llama31_tools/llama31_tools.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama31_tools/llama31_tools.ipynb -------------------------------------------------------------------------------- /llama31_tools/requirements.txt: -------------------------------------------------------------------------------- 1 | pillow 2 | jupyter 3 | openai 4 | brave-search 5 | wolframalpha -------------------------------------------------------------------------------- /llama31_tools_typescript/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama31_tools_typescript/README.md -------------------------------------------------------------------------------- /llama31_tools_typescript/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama31_tools_typescript/main.ts -------------------------------------------------------------------------------- /llama31_tools_typescript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama31_tools_typescript/package.json -------------------------------------------------------------------------------- /llama_index/simple-agents/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama_index/simple-agents/README.md -------------------------------------------------------------------------------- /llama_index/simple-agents/built-in-tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama_index/simple-agents/built-in-tools.py -------------------------------------------------------------------------------- /llama_index/simple-agents/custom-tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama_index/simple-agents/custom-tools.py -------------------------------------------------------------------------------- /llama_index/simple-agents/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama_index/simple-agents/pyproject.toml -------------------------------------------------------------------------------- /llama_index/simple/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama_index/simple/README.md -------------------------------------------------------------------------------- /llama_index/simple/embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama_index/simple/embeddings.py -------------------------------------------------------------------------------- /llama_index/simple/llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama_index/simple/llm.py -------------------------------------------------------------------------------- /llama_index/simple/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/llama_index/simple/requirements.txt -------------------------------------------------------------------------------- /natural_language_query_engine/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/README.md -------------------------------------------------------------------------------- /natural_language_query_engine/config/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/config/constants.py -------------------------------------------------------------------------------- /natural_language_query_engine/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/main.py -------------------------------------------------------------------------------- /natural_language_query_engine/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/requirements.txt -------------------------------------------------------------------------------- /natural_language_query_engine/resources/collection_schemas.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/resources/collection_schemas.json -------------------------------------------------------------------------------- /natural_language_query_engine/resources/prompts/proofread_query.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/resources/prompts/proofread_query.txt -------------------------------------------------------------------------------- /natural_language_query_engine/resources/prompts/query_generation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/resources/prompts/query_generation.txt -------------------------------------------------------------------------------- /natural_language_query_engine/resources/prompts/schema_generation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/resources/prompts/schema_generation.txt -------------------------------------------------------------------------------- /natural_language_query_engine/services/db_client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/services/db_client.py -------------------------------------------------------------------------------- /natural_language_query_engine/services/nlq_engine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/services/nlq_engine.py -------------------------------------------------------------------------------- /natural_language_query_engine/travel_assistant.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/natural_language_query_engine/travel_assistant.py -------------------------------------------------------------------------------- /octoai_openpipe_finetuning_for_toxicity_detection/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_openpipe_finetuning_for_toxicity_detection/.env.example -------------------------------------------------------------------------------- /octoai_openpipe_finetuning_for_toxicity_detection/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_openpipe_finetuning_for_toxicity_detection/README.md -------------------------------------------------------------------------------- /octoai_openpipe_finetuning_for_toxicity_detection/collect_classify_toxic_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_openpipe_finetuning_for_toxicity_detection/collect_classify_toxic_text.py -------------------------------------------------------------------------------- /octoai_openpipe_finetuning_for_toxicity_detection/eval_outputs.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_openpipe_finetuning_for_toxicity_detection/eval_outputs.jsonl -------------------------------------------------------------------------------- /octoai_openpipe_finetuning_for_toxicity_detection/evaluate_classify_toxic_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_openpipe_finetuning_for_toxicity_detection/evaluate_classify_toxic_text.py -------------------------------------------------------------------------------- /octoai_openpipe_finetuning_for_toxicity_detection/outputs.jsonl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_openpipe_finetuning_for_toxicity_detection/outputs.jsonl -------------------------------------------------------------------------------- /octoai_openpipe_finetuning_for_toxicity_detection/patch_openai_w_openpipe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_openpipe_finetuning_for_toxicity_detection/patch_openai_w_openpipe.py -------------------------------------------------------------------------------- /octoai_openpipe_finetuning_for_toxicity_detection/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_openpipe_finetuning_for_toxicity_detection/requirements.txt -------------------------------------------------------------------------------- /octoai_structured_generation/.env.sample: -------------------------------------------------------------------------------- 1 | OCTOAI_TOKEN=... 2 | ENDPOINT_URL="https://text.octoai.run/v1/chat/completions" 3 | -------------------------------------------------------------------------------- /octoai_structured_generation/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_structured_generation/README.md -------------------------------------------------------------------------------- /octoai_structured_generation/benchmark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_structured_generation/benchmark.py -------------------------------------------------------------------------------- /octoai_structured_generation/json_mode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_structured_generation/json_mode.py -------------------------------------------------------------------------------- /octoai_structured_generation/no_json_mode.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_structured_generation/no_json_mode.py -------------------------------------------------------------------------------- /octoai_structured_generation/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_structured_generation/requirements.txt -------------------------------------------------------------------------------- /octoai_text_summarization_methods/.env.example: -------------------------------------------------------------------------------- 1 | OCTOAI_TOKEN=YoUrTokEnHerE 2 | ENDPOINT_URL="https://text.octoai.run/v1/chat/completions" 3 | -------------------------------------------------------------------------------- /octoai_text_summarization_methods/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_text_summarization_methods/README.md -------------------------------------------------------------------------------- /octoai_text_summarization_methods/raw_docs/aapl-20230930.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_text_summarization_methods/raw_docs/aapl-20230930.pdf -------------------------------------------------------------------------------- /octoai_text_summarization_methods/raw_docs/formcrs.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_text_summarization_methods/raw_docs/formcrs.pdf -------------------------------------------------------------------------------- /octoai_text_summarization_methods/raw_docs/formx-17a-5_2a.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_text_summarization_methods/raw_docs/formx-17a-5_2a.pdf -------------------------------------------------------------------------------- /octoai_text_summarization_methods/raw_docs/tsla-20230930.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_text_summarization_methods/raw_docs/tsla-20230930.pdf -------------------------------------------------------------------------------- /octoai_text_summarization_methods/raw_docs/war-and-peace.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_text_summarization_methods/raw_docs/war-and-peace.pdf -------------------------------------------------------------------------------- /octoai_text_summarization_methods/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_text_summarization_methods/requirements.txt -------------------------------------------------------------------------------- /octoai_text_summarization_methods/summarization_methods_app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_text_summarization_methods/summarization_methods_app.py -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/.env.example -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/README.md -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/contract_summarizer_harness.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/contract_summarizer_harness.py -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/raw_docs/aapl-20230930.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/raw_docs/aapl-20230930.pdf -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/raw_docs/formcrs.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/raw_docs/formcrs.pdf -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/raw_docs/formx-17a-5_2a.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/raw_docs/formx-17a-5_2a.pdf -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/raw_docs/tsla-20230930.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/raw_docs/tsla-20230930.pdf -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/raw_docs/war-and-peace.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/raw_docs/war-and-peace.pdf -------------------------------------------------------------------------------- /octoai_vs_openai_cost_diff_app/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/octoai_vs_openai_cost_diff_app/requirements.txt -------------------------------------------------------------------------------- /opeanai_ts_sdk/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | package-lock.json 3 | -------------------------------------------------------------------------------- /opeanai_ts_sdk/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/opeanai_ts_sdk/README.md -------------------------------------------------------------------------------- /opeanai_ts_sdk/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/opeanai_ts_sdk/package.json -------------------------------------------------------------------------------- /opeanai_ts_sdk/simple-tool-call.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/opeanai_ts_sdk/simple-tool-call.ts -------------------------------------------------------------------------------- /opeanai_ts_sdk/test-basic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/opeanai_ts_sdk/test-basic.ts -------------------------------------------------------------------------------- /opeanai_ts_sdk/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/opeanai_ts_sdk/utils.ts -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/.gitignore -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/README.md -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/jsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/jsconfig.json -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/next.config.js -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/package-lock.json -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/package.json -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/postcss.config.js -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/public/background.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/public/background.webp -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/public/favicon.ico -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/public/next.svg -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/public/vercel.svg -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/src/pages/_app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/src/pages/_app.js -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/src/pages/_document.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/src/pages/_document.js -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/src/pages/api/summarize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/src/pages/api/summarize.js -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/src/pages/index.js -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/src/styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/src/styles/globals.css -------------------------------------------------------------------------------- /pdf_summarizer/nextjs/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nextjs/tailwind.config.js -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/.env.example -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/.gitattributes -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/.gitignore -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/LICENSE -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/README.md -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/files/cv-template.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/files/cv-template.pdf -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/index.js -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/old.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/old.js -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/package-lock.json -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/package.json -------------------------------------------------------------------------------- /pdf_summarizer/nodejs/preview.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/pdf_summarizer/nodejs/preview.jpg -------------------------------------------------------------------------------- /recipe_generator/.env: -------------------------------------------------------------------------------- 1 | OCTOAI_API_TOKEN="" -------------------------------------------------------------------------------- /recipe_generator/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/recipe_generator/README.md -------------------------------------------------------------------------------- /recipe_generator/recipe_generator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/recipe_generator/recipe_generator.py -------------------------------------------------------------------------------- /recipe_generator/requirements.txt: -------------------------------------------------------------------------------- 1 | octoai-sdk==0.8.2 -------------------------------------------------------------------------------- /simple_chat/.env: -------------------------------------------------------------------------------- 1 | OCTOAI_API_TOKEN="" 2 | -------------------------------------------------------------------------------- /simple_chat/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/simple_chat/README.md -------------------------------------------------------------------------------- /simple_chat/chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/simple_chat/chat.py -------------------------------------------------------------------------------- /simple_chat/requirements.txt: -------------------------------------------------------------------------------- 1 | langchain==0.1.5 2 | python-dotenv==1.0.0 3 | octoai-sdk==0.8.2 -------------------------------------------------------------------------------- /simple_migration/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/simple_migration/README.md -------------------------------------------------------------------------------- /simple_migration/embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/simple_migration/embedding.py -------------------------------------------------------------------------------- /simple_migration/llm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/octoml/octoai-textgen-cookbook/HEAD/simple_migration/llm.py --------------------------------------------------------------------------------