Cognita

repository·main·Indexed 26 days ago

https://github.com/truefoundry/cognita

An open-source framework for organizing and productionizing RAG (Retrieval-Augmented Generation) codebases. It features a modular, API-driven architecture for parsers, loaders, embedders, and retrievers, along with a no-code UI for experimentation and deployment. The system supports custom implementations via BaseDataLoader, BaseParser, and BaseVectorDB, and can be deployed on TrueFoundry or run locally using Docker Compose with providers like OpenAI, Ollama, and Infinity-server.

Tokens
9K
Snippets
13
Records
62
Agent score
85%

What's inside Cognita

  1. Review HDFC Bank Freedom Credit Card Features and Rewards

    main

    The HDFC Bank Freedom Credit Card offers various reward structures and benefits:

    Reward Points Structure:

    • 10X CashPoints: On favourite merchants (Big Basket, BookMyshow, OYO, Swiggy & Uber). Maximum of 2,500 CashPoints per calendar month.
    • 5X CashPoints: On EMI spends at merchant locations. Maximum of 2,500 CashPoints per calendar month.
    • Standard Spends: 1 CashPoint for every ₹150 spent (excludes fuel, Wallet/Prepaid Card loads, or Voucher Purchases).
    • Note: Rent payments and Govt Related transactions do not earn Reward Points. Grocery transaction reward points are capped at 1,000 per month.

    Additional Benefits:

    • Fuel Surcharge Waiver: 1% waiver on fuel transactions (Min: ₹400, Max: ₹5,000; Max waiver: ₹250 per statement cycle).
    • Dining: Up to 20% discount on partner restaurants via Swiggy Dineout.
    • Interest Rate: 0.99% for the first 90 days on non-EMI spends from the card issuance date (excludes Insta loan, Insta Jumbo Loan, SmartEMI, EasyEMI, Balance transfer, or Cash transactions).
    • Welcome Benefit: 500 CashPoints upon payment of the membership fee.
    • Contactless Payments: Enabled for fast payments. In India, contactless mode is allowed up to ₹5,000 without a PIN; amounts ≥ ₹5,000 require a PIN.
  2. Redeem CashPoints for HDFC Bank Freedom Credit Card

    main

    CashPoints earned on the HDFC Bank Freedom Credit Card can be redeemed through Net Banking login, Phone Banking, or a physical redemption form.

    Redemption Options and Rates:

    • Statement Balance: 1 CashPoint = ₹0.15.
    • Travel (Flights & Hotels) via SmartBuy Rewards Portal: 1 CashPoint = ₹0.15. You can redeem up to a maximum of 50% of the booking value using CashPoints.
    • Rewards Catalogue: 1 CashPoint = ₹0.15.
    • Cashback: 1 CashPoint = ₹0.15. Note that you must have a minimum of CashPoints equivalent to ₹500 to redeem for cashback.
    • Airmiles: 1 CashPoint = ₹0.15.

    Redemption Limits and Validity:

    • Flight & Hotel Bookings: Capped at 50,000 reward points per calendar month.
    • Cashback Redemption: Capped at 50,000 reward points per calendar month.
    • Vouchers/Products: Cardmembers can redeem up to 70% of the product/voucher value through Reward points.
    • Validity: CashPoints are valid for 2 years from the date of transaction.
  3. Redeem CashPoints for HDFC Bank UPI RuPay Credit Card

    main

    CashPoints earned on the HDFC Bank UPI RuPay Credit Card can be redeemed in several ways:

    Redemption Rates and Methods

    • Statement Balance: Redeem against your statement balance at a rate of 1 CashPoint = ₹0.25. Redemption requires a minimum of CashPoints equivalent to ₹500. This can be done via Net Banking login or a physical redemption form.
    • Travel Benefits (SmartBuy Rewards Portal): Redeem against Flight & Hotel bookings. You can redeem up to a maximum of 50% of the booking value through CashPoints at a rate of 1 CashPoint = ₹0.25. The remaining balance must be paid via the Credit Card.
    • Rewards Catalogue: Redeem against select vouchers/products. Cardmembers can redeem up to 70% of the product/voucher value through Reward points, paying the rest via Credit Card.

    Redemption Caps and Validity

    • Flight & Hotel Redemption Cap: Capped at 50,000 points per calendar month (effective Jan 1, 2023).
    • Cashback Redemption Cap: Capped at 50,000 points per calendar month (effective Feb 1, 2023).
    • Validity: CashPoints are valid for 2 years from the date of the transaction.
  4. Deploy RAG Application on TrueFoundry

    main

    To deploy a RAG application on TrueFoundry, follow these high-level steps:

    1. Register at TrueFoundry: Create an organization and obtain your TFY_HOST (e.g., https://<org_name>.truefoundry.cloud).
    2. Setup a Cluster: Launch a managed cluster and register a Docker Registry.
    3. Add Storage Integration: Configure access to your data storage.
    4. Create an ML Repo: Create a new ML Repo and link it to your Storage Integration.
    5. Create a Workspace: Create a Workspace, link it to your Cluster, and grant it access to your ML Repo as Project Admin.
    6. Deploy RAG Application: Navigate to Deployments, select Application Catalogue, choose your workspace and the RAG Application, then fill in the deployment template (including Qdrant DB configuration).
  5. Manage Marriott Bonvoy membership and points

    main
    • Find Membership Number: Use the Marriott lookup tool to find your number associated with your Email ID.
    • Merge Accounts: If you have two distinct Marriott Bonvoy Membership Numbers, you can merge them via the Marriott help page.
      • Constraint: Accounts can only be merged 30 days after creation.
      • Result: All points and Qualifying Night Credits will transfer to the retained membership ID.
    • Redeem Points: Points can be redeemed for stays at participating properties, Marriott Bonvoy Moments™ experiences, and travel. Points cannot be exchanged for cash, prizes, or credit.
  6. Rebuild Cognita services after code changes

    main

    If you have modified the backend or frontend code (e.g., added new requirements or packages) and want to reflect these changes in your running containers, use the --build flag with docker-compose.

    Rebuild Core Services

    docker-compose --env-file compose.env up --build

    Rebuild Core + Local Model Services

    docker-compose --env-file compose.env --profile ollama --profile infinity up --build
  7. Link Swiggy HDFC Bank Credit Card to Swiggy App

    main

    To earn cashback and unlock the Swiggy One membership, you must link your card to the Swiggy app. This is mandatory for customers who applied through the HDFC Bank portal.

    Steps to link your card:

    1. Open the Swiggy app and go to the Accounts section (top right).
    2. Select Swiggy HDFC Bank Credit Card.
    3. Scroll to the bottom to the section Already Got the Card? and click Link Your Card to Swiggy.
    4. Enter the Mobile number used in your Credit Card application.
    5. Submit the OTP received to complete the linking process.
  8. Redeem Reward Points for Regalia Gold Credit Card

    main

    Reward Points can be redeemed via Smartbuy or Netbanking. Redemption values vary by category:

    Redemption TypeValue per 1 Reward Point (RP)
    Exclusive Gold Catalogue (via Smartbuy)Rs 0.65
    Flights and Hotel bookings (via Smartbuy)Rs 0.5
    Airmiles conversion (via Netbanking/SmartBuy)Up to 0.5 airmiles
    Products and Vouchers (via Netbanking/SmartBuy)Up to Rs 0.35
    Redemption against statement balanceRs 0.20

    Accrual Rates:

    • Standard Retail Spends: 4 Reward Points per Rs 150 (includes Insurance, Utilities, and Education).
    • Accelerated Spends: 20 Reward Points per Rs 150 at Marks & Spencer, Myntra, Reliance Digital, and Nykaa.
  9. Redeem Swiggy Money Cashback

    main

    Cashback earned on the Swiggy HDFC Bank Credit Card is issued as Swiggy Money and can only be redeemed within the Swiggy application on the following platforms:

    • Food ordering
    • Instamart
    • Dineout
    • Genie

    Redemption Details:

    • How to use: Select Swiggy Money as the payment method under the profile section in the Swiggy app.
    • Minimum Transaction: Cashback is not applicable on transactions less than ₹100.
    • Expiry: Swiggy Money expires 1 year after the cashback is earned.
    • Priority: The cashback with the closest expiry date is used first.
  10. Use the RAG UI to query documents

    main

    Once deployed, you can use the Cognita UI to interact with your data:

    1. Create Data Source: Go to the Data Sources tab and click + New Datasource. Supported types include local directories, web URLs, GitHub URLs, or Truefoundry artifact FQNs.
    2. Create Collection: Go to the Collections tab, click + New Collection, enter a name, select an Embedding Model, add your data source, and click Process to start indexing.
    3. Response Generation: Select your collection, choose an LLM and its configuration, select a document retriever, provide a prompt, and enter your query.
  11. Install prerequisites for Docs QA Frontend

    main

    Before setting up the Docs QA Frontend, ensure you have the following installed:

    • Node.js v18
    • Yarn v1.22.19

    Installing Node.js v18

    Windows: Download the installer from the official Node.js website.

    Linux (Ubuntu/Debian):

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install software-properties-common
    curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
    sudo apt-get install nodejs

    macOS:

    brew install node@18

    Installing Yarn v1.22.19

    npm install -g yarn@1.22.19