Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
23
44.3k
id
stringlengths
10
84
metadata
dict
# List of targets and their descriptions .PHONY: help help: @echo "Note: The following commands will change the status of 'cloud_whisper' database.\n" @echo "Available targets:" @echo " migrate Create a new Migration File." @echo " upgrade Upgrade to a later version." @echo " dow...
Makefile/0
{ "file_path": "Makefile", "repo_id": "Makefile" }
# Dockerfile FROM python:3.11-slim-bullseye # Set the working directory WORKDIR /CloudWhisperCustomBot COPY requirements.txt . RUN apt-get update RUN apt-get install -y build-essential RUN apt-get install -y dumb-init RUN apt-get install -y curl RUN apt-get install -y lsb-release RUN apt-get install -y wget RUN apt-...
Dockerfile/0
{ "file_path": "Dockerfile", "repo_id": "Dockerfile" }
services: cloud_whisper_fe: container_name: cloud_whisper_fe build: ../cloud-whisper-frontend command: npm run build environment: REACT_APP_API_URL: https://cloudwhisper-stage.wanclouds.ai/ REACT_APP_AUTH_REDIRECT_URI: https://cloudwhisper-stage.wanclouds.ai/users/wc/callback REACT_A...
docker-compose.yml/0
{ "file_path": "docker-compose.yml", "repo_id": "docker-compose.yml" }
# A generic, single database configuration. [alembic] # path to migration scripts. # Use forward slashes (/) also on windows to provide an os agnostic path script_location = migrations # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s # Uncomment the line below if you want the ...
alembic.ini/0
{ "file_path": "alembic.ini", "repo_id": "alembic.ini" }
[tool.ruff] line-length = 120 target-version = "py311" [tool.ruff.format] indent-style = "tab" quote-style = "double" [tool.poetry] name = "CloudWhisperCustomBot" version = "0.1.0" description = "Chat with your API in Natural Language" authors = ["syedfurqan <syedfurqan@wanclouds.net>"] [build-system] requires = ["p...
pyproject.toml/0
{ "file_path": "pyproject.toml", "repo_id": "pyproject.toml" }
aiohttp==3.9.0 alembic==1.9.0 alembic_postgresql_enum==1.3.0 anthropic==0.34.2 asyncpg==0.27.0 bcrypt==4.1.3 celery==5.3.1 celery-singleton==0.3.1 faiss-cpu==1.7.4 fastapi==0.104.1 httpx==0.27.0 langchain==0.0.351 langchain-community==0.0.3 langchain-core==0.1.1 loguru==0.7.2 llama-index==0.10.58 llama-index-vector-sto...
requirements.txt/0
{ "file_path": "requirements.txt", "repo_id": "requirements.txt" }
# CloudWhisperCustomBot
README.md/0
{ "file_path": "README.md", "repo_id": "README.md" }
from contextlib import asynccontextmanager from fastapi import APIRouter, FastAPI from fastapi.middleware.cors import CORSMiddleware from loguru import logger from qdrant_client import models from qdrant_client.http.exceptions import UnexpectedResponse from app.core.config import settings, setup_app_logging, neo4j_dr...
app/main.py/0
{ "file_path": "app/main.py", "repo_id": "app" }
from app.api_discovery.discovery import discover_api_data from app.worker.cypher_store import qdrant from app.worker.scheduled_tasks import track_and_update_activity_status __all__ = ["discover_api_data", "qdrant", "track_and_update_activity_status"]
app/__init__.py/0
{ "file_path": "app/__init__.py", "repo_id": "app" }
from datetime import timedelta from celery import Celery from celery.signals import worker_ready from celery_singleton import clear_locks from app.core.config import settings broker = settings.redis.REDIS_URL celery_app = Celery( 'whisper-celery', broker=broker, include=[ 'app.api_discovery', ...
app/redis_scheduler.py/0
{ "file_path": "app/redis_scheduler.py", "repo_id": "app" }
import asyncio import httpx import mailchimp_transactional as MailchimpTransactional from celery_singleton import Singleton from loguru import logger from mailchimp_transactional.api_client import ApiClientError from sqlalchemy import select from app.models import Profile, ActivityTracking from app.redis_scheduler im...
app/worker/scheduled_tasks.py/0
{ "file_path": "app/worker/scheduled_tasks.py", "repo_id": "app" }
import time from llama_index.core import VectorStoreIndex, ServiceContext from llama_index.core.ingestion import IngestionPipeline from llama_index.core.schema import TextNode from llama_index.embeddings.openai import OpenAIEmbedding from llama_index.llms.openai import OpenAI from llama_index.vector_stores.qdrant impo...
app/worker/cypher_store.py/0
{ "file_path": "app/worker/cypher_store.py", "repo_id": "app" }
from fastapi import APIRouter from app.web.chats import whisper_chats from app.web.clouds import whisper_clouds # from app.web.knowledge_graphs import whisper_knowledge_graphs from app.web.profiles import whisper_profiles from app.web.profiles import router from app.web.websockets import websockets_chats from app.web....
app/web/__init__.py/0
{ "file_path": "app/web/__init__.py", "repo_id": "app" }
from typing import Optional, Dict from pydantic import BaseModel from enum import Enum class UpdateAppearanceRequest(BaseModel): appearance: Optional[Dict] = None class OnboardingStatus(str, Enum): app_tour = "app_tour" action_tour = "action_tour" onboarded = "onboarded" class UpdateOnboardingStat...
app/web/profiles/schemas.py/0
{ "file_path": "app/web/profiles/schemas.py", "repo_id": "app" }
from .api import whisper_profiles, router __all__ = ["whisper_profiles", "router"]
app/web/profiles/__init__.py/0
{ "file_path": "app/web/profiles/__init__.py", "repo_id": "app" }
from http import HTTPStatus import httpx from loguru import logger from fastapi import APIRouter, Depends, HTTPException from fastapi.responses import JSONResponse from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy import select from app import models from app.api_discovery.utils import update_profile_wi...
app/web/profiles/api.py/0
{ "file_path": "app/web/profiles/api.py", "repo_id": "app" }
CREATED_AT_FORMAT_WITH_MILLI_SECONDS = '%Y-%m-%dT%H:%M:%S.%fZ'
app/web/common/consts.py/0
{ "file_path": "app/web/common/consts.py", "repo_id": "app" }
ROUTE_TEMPLATE = """You are a team member of the 'Cloud Whisperer' project by Wanclouds, an expert Cloud Support Engineer specializing in cloud backups, disaster recovery, and migrations. Your expertise covers major public clouds (IBM Cloud, AWS, Google Cloud, Microsoft Azure) and Wanclouds' offerings. You assist poten...
app/web/common/templates.py/0
{ "file_path": "app/web/common/templates.py", "repo_id": "app" }
import aiohttp import asyncio import httpx import json import requests import time from fastapi import HTTPException from loguru import logger from sqlalchemy import select, update from sqlalchemy.orm import selectinload from app import models from app.api_discovery.utils import update_profile_with_vpcplus_api_key fro...
app/web/common/utils.py/0
{ "file_path": "app/web/common/utils.py", "repo_id": "app" }
from types import AsyncGeneratorType import aiohttp import types import asyncio import httpx import json import re from datetime import datetime from fastapi import HTTPException from fastapi.security import HTTPAuthorizationCredentials from loguru import logger from sqlalchemy import asc from sqlalchemy.future import...
app/web/common/chats_websockets_utils.py/0
{ "file_path": "app/web/common/chats_websockets_utils.py", "repo_id": "app" }
import asyncio from typing import AsyncGenerator from contextlib import asynccontextmanager from loguru import logger from sqlalchemy.ext.asyncio import create_async_engine, AsyncSession from sqlalchemy.orm import sessionmaker from app.core.config import settings AsyncSessionLocal = sessionmaker( bind=create_as...
app/web/common/db_deps.py/0
{ "file_path": "app/web/common/db_deps.py", "repo_id": "app" }
import httpx from fastapi import Depends, Header, HTTPException, WebSocketException from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer from httpx import Response from loguru import logger from app.api_discovery.utils import update_profile_with_vpcplus_api_key from app.core.config import settings fro...
app/web/common/deps.py/0
{ "file_path": "app/web/common/deps.py", "repo_id": "app" }
{ "Create IBM VPC backup": { "v1/ibm/clouds": { "GET": { "fields": [ "id", "name" ] } }, "v1/ibm/geography/regions": { "GET": { "fields": [ "id", "name", "display_name" ] } }, "v1/ibm/vpcs": {...
app/web/common/api_path_to_fields.json/0
{ "file_path": "app/web/common/api_path_to_fields.json", "repo_id": "app" }
API_KEY_MESSAGE ="""Cloud Whisper requires a VPC+ API key to discover data and perform actions. Please follow these steps to create your API key:\n 1. Create your VPC+ API Key: \n \t \n a. Click on User name in the bottom left corner and select Settings \n \t \n b. Navigate to the "API Key" section \n \t \n c....
app/web/common/cloud_setup_instruction_messages.py/0
{ "file_path": "app/web/common/cloud_setup_instruction_messages.py", "repo_id": "app" }
get_vpc_backups_query = """ MATCH (v:VPC) OPTIONAL MATCH (b:VPCBackup {name: v.name}) WITH v, b WHERE b IS NULL AND v.cloud_id = '{cloud_id}' RETURN v.cloud_id, v.name """ get_iks_backups_query = """ MATCH (v:KubernetesCluster) OPTIONAL MATCH (b:IKSBackupDetails {name: v.name}) WITH v, b WHERE b IS NULL AND v.cloud_id...
app/web/activity_tracking/neo4j_query.py/0
{ "file_path": "app/web/activity_tracking/neo4j_query.py", "repo_id": "app" }
from .api import activity_tracking_n_recommendations __all__ = ["activity_tracking_n_recommendations"]
app/web/activity_tracking/__init__.py/0
{ "file_path": "app/web/activity_tracking/__init__.py", "repo_id": "app" }
from math import ceil from typing import List, Optional from typing import Annotated from fastapi import APIRouter, Depends, HTTPException, Query from sqlalchemy.ext.asyncio import AsyncSession from loguru import logger from sqlalchemy import select from pydantic import conint from sqlalchemy.orm import undefer from s...
app/web/activity_tracking/api.py/0
{ "file_path": "app/web/activity_tracking/api.py", "repo_id": "app" }
import datetime import typing as t import uuid from enum import Enum from pydantic import BaseModel, Field class MessageTypeEnum(str, Enum): Human = 'Human' Assistant = 'Assistant' class ChatTypeEnum(str, Enum): QnA = 'QnA' Action = 'Action' class MessageType(BaseModel): type: MessageTypeEnum...
app/web/chats/schemas.py/0
{ "file_path": "app/web/chats/schemas.py", "repo_id": "app" }
from .api import whisper_chats __all__ = ["whisper_chats"]
app/web/chats/__init__.py/0
{ "file_path": "app/web/chats/__init__.py", "repo_id": "app" }
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
4